Sub itemz(index, item, value, stackable , type)Dim SlotIf type = 1 Then If stackable = 0 Then Slot = 1 Do While Slot < 24 If GetPlayerInvItemNum(index, Slot) = item Then Call SetPlayerInvItemNum(index, Slot, 0) Call SetPlayerInvItemValue(index, Slot, 0) Call SendInventoryUpdate(index, Slot) Slot = 24 End If Slot = Slot+1 Loop Exit Sub End If If stackable = 1 Then Slot = 1 Do While Slot < 24 If GetPlayerInvItemNum(index, Slot) = item Then AMOUNT = GetPlayerInvItemValue(index, Slot) TAKE = Int(AMOUNT-value) If TAKE <0> 0 Then Call SetPlayerInvItemNum(index, Slot, 0) Call SetPlayerInvItemValue(index, Slot, 0) Call SetPlayerInvItemNum(index, Slot, item) Call SetPlayerInvItemValue(index, Slot, TAKE) Call SendInventoryUpdate(index, Slot) End If Slot = 24 End If Slot = Slot+1 Loop Exit Sub End IfElseIf type = 2 Then Do While Slot < 24 If GetPlayerInvItemNum(index, Slot) = 0 Then Call SetPlayerInvItemNum(index, Slot, item) Call SetPlayerInvItemValue(index, Slot, GetPlayerInvItemValue(index, Slot)+value) Call SendInventoryUpdate(index, Slot) Slot = 24 End If Slot = Slot+1 LoopEnd IfEnd Sub
If you know what ur doin (know how to call a sub...) then yes
Read the script tuts to learn...Then try and use scripts
9. No necropostingNecro posting is not allowed. Leave old topics alone. Necroposting is posting in a topic which is older than 1 month.Necroposting only apply to the following boards:Chit ChatGeneral ChatQuestionsGame DesignWishlistNeed a Job?Recruiting CenterScripting QuestionsRequest ScriptGFX Chit ChatGUI HelpGFX ShowoffRequest ResourcesPaperdoll QuestionsProgramming QuestionsMapping ContestGraphic ContestDutchSpanishSignatures
read it idiot
read it idiot ALSO YOU SHOULD GET WARNED FOR POSTING IN A TOPIC THAT IS LIKE 1 .5 YEARS OLD remember the rules if its over 60 days no posts DONT post cause it is smarter to make a new topicHOW TO USECommand is Sub itemz(index, item, value, stackable , type)item = the item numvalue = how many of the item(if non-stackable put 0)stackable = 0 if not stackable and 1 if it istype = 1 if its takeing an item and 2 if it giveing an itemcall itemz(index, item, value, stackable , type)
WHEN ALL ELSE FAILS, USE TASK MANAGER! - Hippoman 7-8-09.