delitem2.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //===== rAthena Script =======================================
  2. //= Sample: Delitem2
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Last Updated: ========================================
  6. //= 20140208
  7. //===== Description: =========================================
  8. //= Demonstrates the 'delitem2' command.
  9. //============================================================
  10. prontera,160,182,5 script Delitem2 51,{
  11. mes "Item ID?";
  12. next;
  13. input .@nameid;
  14. mes "Amount?";
  15. next;
  16. input .@amount;
  17. mes "Identified? (0:no, 1:yes)";
  18. next;
  19. input .@iden;
  20. mes "Refined how many times?";
  21. next;
  22. input .@ref;
  23. mes "Attribute? (0:normal, 1:broken)";
  24. next;
  25. input .@attr;
  26. mes "4 cards (one after another)...";
  27. next;
  28. input .@c1;
  29. input .@c2;
  30. input .@c3;
  31. input .@c4;
  32. mes "Your command is:";
  33. mes "delitem2 "+.@nameid+","+.@amount+","+.@iden+","+.@ref+","+.@attr+","+.@c1+","+.@c2+","+.@c3+","+.@c4;
  34. next;
  35. delitem2 .@nameid,.@amount,.@iden,.@ref,.@attr,.@c1,.@c2,.@c3,.@c4;
  36. mes "And here is the moment when your item should disappear! :P";
  37. close;
  38. }