Non-scripter[2/5]Beginner[2/5]Advanced Scripter[1/5]Expert[1/5]Pro[1/5]
Case 10If CheckItem(index, 2) = 1 ThenIf CheckItem(index, 3) = 1 ThenCall TakeItem(index, 2, "all")Call TakeItem(index, 3, "all")Call GiveItem(index, 4, 0)Call PlayerMsg(index, "You gained a shield.", 12)ElseCall PlayerMsg(index, "You need the left side of the shield.", 12)End IfEnd IfCase 11If CheckItem(index, 3) = 1 ThenIf CheckItem(index, 2) = 1 ThenCall TakeItem(index, 3, "all")Call TakeItem(index, 2, "all")Call GiveItem(index, 4, 0)Call PlayerMsg(index, "You gained a shield.", 12)ElseCall PlayerMsg(index, "You need the right side of the shield.", 12)End IfEnd IfEnd SelectEnd Sub
Sub TakeItem(index, item, value)If value = "all" ThenSLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = item ThenCall SetPlayerInvItemNum(index, SLOT, 0)Call SetPlayerInvItemValue(index, SLOT, 0)Call SendInventoryUpdate(index, SLOT)SLOT = 24End IfSLOT = SLOT+1LoopElseSLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = item ThenCall SetPlayerInvItemNum(index, SLOT, 0)Call SetPlayerInvItemValue(index, SLOT, GetPlayerInvItemValue(index, SLOT) - value)Call SendInventoryUpdate(index, SLOT)SLOT = 24End IfSLOT = SLOT+1LoopEnd IfEnd SubSub GiveItem(index, item, value)SLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = 0 ThenCall SetPlayerInvItemNum(index, SLOT, item)Call SetPlayerInvItemValue(index, SLOT, value)Call SendInventoryUpdate(index, SLOT)SLOT = 24End IfSLOT = SLOT+1LoopEnd SubSub ChangeItem(index, olditem, newitem, newval)SLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = olditem ThenCall SetPlayerInvItemNum(index, SLOT, newitem)Call SetPlayerInvItemValue(index, SLOT, newval)Call SendInventoryUpdate(index, SLOT)SLOT = 24End IfSLOT = SLOT+1LoopEnd SubSub CheckItem(index, item)CheckItem = 0SLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = item ThenCheckItem = 1SLOT = 24End IfSLOT = SLOT+1LoopEnd Sub
Case 10Dim SLOTDim CheckItemCheckItem = 0SLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = 2 ThenCheckItem = 1SLOT = 24End IfSLOT = SLOT+1LoopIf CheckItem = 1 ThenCheckItem = 0SLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = 3 ThenCheckItem = 1SLOT = 24End IfSLOT = SLOT+1LoopIf CheckItem = 1 ThenCall TakeItem(index, 2, "all")Call TakeItem(index, 3, "all")Call GiveItem(index, 4, 0)Call PlayerMsg(index, "You gained a shield.", 12)ElseCall PlayerMsg(index, "You need the left side of the shield.", 12)End IfEnd If
Case 11Dim SLOTDim CheckItemCheckItem = 0SLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = 3 ThenCheckItem = 1SLOT = 24End IfSLOT = SLOT+1LoopIf CheckItem = 1 ThenDim SLOTDim CheckItemCheckItem = 0SLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = 2 ThenCheckItem = 1SLOT = 24End IfSLOT = SLOT+1LoopIf CheckItem = 1 ThenCall TakeItem(index, 3, "all")Call TakeItem(index, 2, "all")Call GiveItem(index, 4, 0)Call PlayerMsg(index, "You gained a shield.", 12)ElseCall PlayerMsg(index, "You need the right side of the shield.", 12)End IfEnd IfEnd SelectEnd Sub
Sub TakeItem(index, item, value)If value = "all" ThenSLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = item ThenCall SetPlayerInvItemNum(index, SLOT, 0)Call SetPlayerInvItemValue(index, SLOT, 0)Call SendInventoryUpdate(index, SLOT)SLOT = 24End IfSLOT = SLOT+1LoopElseSLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = item ThenCall SetPlayerInvItemNum(index, SLOT, 0)Call SetPlayerInvItemValue(index, SLOT, GetPlayerInvItemValue(index, SLOT) - value)Call SendInventoryUpdate(index, SLOT)SLOT = 24End IfSLOT = SLOT+1LoopEnd IfEnd Sub
Sub GiveItem(index, item, value)SLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = 0 ThenCall SetPlayerInvItemNum(index, SLOT, item)Call SetPlayerInvItemValue(index, SLOT, value)Call SendInventoryUpdate(index, SLOT)SLOT = 24End IfSLOT = SLOT+1LoopEnd Sub
Sub ChangeItem(index, olditem, newitem, newval)SLOT = 1Do While SLOT < 24If GetPlayerInvItemNum(index, SLOT) = olditem ThenCall SetPlayerInvItemNum(index, SLOT, newitem)Call SetPlayerInvItemValue(index, SLOT, newval)Call SendInventoryUpdate(index, SLOT)SLOT = 24End IfSLOT = SLOT+1LoopEnd Sub
.Im availible 24/7 only on weekends week days from 3 to 9 in the after noon..
4553 Female Dogs I raped in mexico