trs_rp.txt 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //===== rAthena Script =======================================
  2. //= Treasure Room Protection
  3. //===== By: ==================================================
  4. //= Masao
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Restricts Treasure Room entry to Guild Masters only.
  12. //===== Additional Comments: =================================
  13. //= 1.0 Converted from the official script.
  14. //= 1.1 Reverted back and optimized. [Daegaladh]
  15. //============================================================
  16. // Main NPC :: ban_stealer
  17. //============================================================
  18. - script Gld_Trea_Protect::Gld_Trea_Protect -1,{
  19. end;
  20. OnTouch:
  21. set .@GID, getcastledata(strnpcinfo(2),1);
  22. if (strcharinfo(0) != getguildmaster(.@GID)) {
  23. if (compare(strnpcinfo(2),"aldeg"))
  24. warp "aldebaran",143,112;
  25. else if (compare(strnpcinfo(2),"gefg"))
  26. warp "geffen",120,38;
  27. else if (compare(strnpcinfo(2),"payg"))
  28. warp "payon",100,100;
  29. else if (compare(strnpcinfo(2),"prtg"))
  30. warp "prontera",119,64;
  31. }
  32. end;
  33. }
  34. prtg_cas01,11,208,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas01 -1,6,6
  35. prtg_cas02,202,228,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas02 -1,6,6
  36. prtg_cas03,189,132,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas03 -1,6,6
  37. prtg_cas04,271,162,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas04 -1,6,6
  38. prtg_cas05,276,178,0 duplicate(Gld_Trea_Protect) ban_warp#prtg_cas05 -1,6,6
  39. payg_cas01,291,8,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas01 -1,6,6
  40. payg_cas02,145,144,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas02 -1,6,6
  41. payg_cas03,159,168,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas03 -1,6,6
  42. payg_cas04,147,48,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas04 -1,6,6
  43. payg_cas05,157,132,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas05 -1,6,6
  44. aldeg_cas01,118,223,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas01 -1,8,8
  45. aldeg_cas02,135,230,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas02 -1,8,8
  46. aldeg_cas03,225,269,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas03 -1,8,8
  47. aldeg_cas04,84,13,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas04 -1,8,8
  48. aldeg_cas05,62,12,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas05 -1,8,8
  49. gefg_cas01,154,112,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas01 -1,6,6
  50. gefg_cas02,140,116,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas02 -1,6,6
  51. gefg_cas03,271,290,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas03 -1,6,6
  52. gefg_cas04,116,119,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas04 -1,6,6
  53. gefg_cas05,144,110,0 duplicate(Gld_Trea_Protect) ban_warp#gefg_cas05 -1,6,6