gldfunc_kafra.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //===== eAthena Script =======================================
  2. //= War of Emperium Kafras Function
  3. //===== By: ==================================================
  4. //= jAthena - kalen (1.0)
  5. //= 1.1 by Akaru, ho|yAnge|X, and Valaris
  6. //===== Current Version: =====================================
  7. //= 1.2a
  8. //===== Compatible With: =====================================
  9. //= eAthena 0.1+; RO Episode 4+
  10. //===== Description: =========================================
  11. //= Kafra service for guild members
  12. //======================================
  13. //= Break down of arguments used in the function:
  14. //= arg(0): name of City.
  15. //= arg(1): name of guild castle.
  16. //= arg(2): x1 coordinate for warp
  17. //= arg(3): y1 coordinate for warp
  18. //===== Additional Comments: =================================
  19. //= v1.2: All Guild kafra scripts use this function. [kobra_k88]
  20. //= 1.2a Added extra check for Contract with Kafra Guild Skill [Lupus]
  21. //= 1.2 Kafra's not charge for use of Cart Rentals [L0ne_W0lf]
  22. //= Updated dialog and names.
  23. //============================================================
  24. function script F_GKafra {
  25. cutin "kafra_01",2;
  26. set @GID, GetCastleData(getarg(0),1);
  27. if (getcharid(2) == @GID && getgdskilllv(@GID,10001)) goto L_StartG;
  28. mes "[Kafra Service]";
  29. mes "I am contracted to provide service only for the ^ff0000" + GetGuildName(@GID) + "^000000 Guild. Please use another Kafra Corporation staff member around here. I am Sorry for your inconvenience.";
  30. cutin "",255;
  31. close;
  32. L_StartG:
  33. set @wrpP[0], 200;
  34. set @wrpD$[0], getarg(1);
  35. setarray @wrpC$[0], @wrpD$[0]+" ^880000"+@wrpP[0]+"^000000 z", "Cancel", "", "", "","";
  36. callfunc "F_Kafra",2,0,0,0,800;
  37. end;
  38. }