case 1: if (countitem(3301) == 0) { set .@id,3301; goto GetToken; } break;
//item2
case 2: if (countitem(3302) == 0) { set .@id,3302; goto GetToken; } break;
//item3
case 3: if (countitem(3303) == 0) { set .@id,3303; goto GetToken; } break;
//item4
case 4: if (countitem(3304) == 0) { set .@id,3304; goto GetToken; } break;
to delete item 2 (if i have one on my inventory), if i recieved item 1.
so basically what i need is, if i recieved this item1, it will automatically deletes the item2, and vice versa.. same as the 2nd one, if i get item4, it will automatically deletes item3 if i have one im my inventory...
Question
Critica
I would like to make this script
//item1
case 1: if (countitem(3301) == 0) { set .@id,3301; goto GetToken; } break;
//item2
case 2: if (countitem(3302) == 0) { set .@id,3302; goto GetToken; } break;
//item3
case 3: if (countitem(3303) == 0) { set .@id,3303; goto GetToken; } break;
//item4
case 4: if (countitem(3304) == 0) { set .@id,3304; goto GetToken; } break;
to delete item 2 (if i have one on my inventory), if i recieved item 1.
so basically what i need is, if i recieved this item1, it will automatically deletes the item2, and vice versa.. same as the 2nd one, if i get item4, it will automatically deletes item3 if i have one im my inventory...
(3301-3304 items are my custom id's btw..)
can anyone help me pls?? thank you... =)
Edited by critica2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.