Mr BrycE Posted July 7, 2012 Posted July 7, 2012 (edited) dicastes01,213,167,5 script Dewata Warper 112,{ if( paid ) { warp "dewata",232,53; announce " "+strcharinfo(0)+": has been warped to Dewata Island!!",bc_all; end; } if( countitem(6048) >= 10 || countitem(7078) >= 5 || countitem(6153) >= 1000) { delitem 6048,10; delitem 7078,5; delitem 6153,1000; set paid, 1; warp "dewata",232,53; announce " "+strcharinfo(0)+": has been warped to Dewata Island!!",bc_all; } else { warp "dicastes01",210,168; dispbottom "Entry to Dewata requires a 10pcs Unidentified Ore and 5pcs Wrath of Valkyrie and Thousand SET."; } end; } i want someone to modify it...because.. for example when a player has the 10pcs Und Ore 5pcs wrath of Valk then accidentally talk to the NPC, the NPC will eat the 10 and 5pcs because the 1000 SET are not in their inventory.. i want to modify the script into when, the player has an incomplete requirments it will not eat the other requirements. Edited July 7, 2012 by Mr BrycE Quote
Aerie Posted July 7, 2012 Posted July 7, 2012 You should use && (and), not || (or). dicastes01,213,167,5 script Dewata Warper 112,{ if( paid ) { warp "dewata",232,53; announce " "+strcharinfo(0)+": has been warped to Dewata Island!!",bc_all; end; } if( countitem(6048) >= 10 && countitem(7078) >= 5 && countitem(6153) >= 1000) { delitem 6048,10; delitem 7078,5; delitem 6153,1000; set paid, 1; warp "dewata",232,53; announce " "+strcharinfo(0)+": has been warped to Dewata Island!!",bc_all; } else { warp "dicastes01",210,168; dispbottom "Entry to Dewata requires a 10pcs Unidentified Ore and 5pcs Wrath of Valkyrie and Thousand SET."; } end; } Quote
Mr BrycE Posted July 7, 2012 Author Posted July 7, 2012 (edited) ohh i see..thanks sirr EDIT: thanks sir. Edited July 7, 2012 by Mr BrycE Quote
Question
Mr BrycE
i want someone to modify it...because..
for example
when a player has the 10pcs Und Ore 5pcs wrath of Valk then accidentally talk to the NPC, the NPC will eat the 10 and 5pcs
because the 1000 SET are not in their inventory..
i want to modify the script into when, the player has an incomplete requirments it will not eat the other requirements.
Edited by Mr BrycE2 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.