Jump to content
  • 0

Modify the script please


Mr BrycE

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

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 by Mr BrycE
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  383
  • Reputation:   109
  • Joined:  11/11/11
  • Last Seen:  

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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

ohh i see..thanks sirr

EDIT: thanks sir.

Edited by Mr BrycE
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...