SHARE
TWEET

Survival_Guide.lua

a guest Aug 21st, 2015 141 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -----------------------------------
  2. -- Area: Castle Oztroja
  3. -- NPC:  qm1 (???)
  4. -- Involved in Quest: True Strength
  5. -- @pos -100 -71 -132 151
  6. -----------------------------------
  7. package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
  8. -----------------------------------
  9.  
  10. require("scripts/globals/settings");
  11. require("scripts/globals/keyitems");
  12. require("scripts/globals/quests");
  13. require("scripts/zones/Castle_Oztroja/TextIDs");
  14.  
  15. -----------------------------------
  16. -- onTrade Action
  17. -----------------------------------
  18.  
  19. function onTrade(player,npc,trade)
  20.        
  21.         if(player:getQuestStatus(SANDORIA,A_BOY_S_DREAM) == QUEST_ACCEPTED and player:getVar("aBoysDreamCS") == 4) then
  22.                 if(trade:hasItemQty(17001,1) and trade:getItemCount() == 1) then -- Trade Giant Shell Bug
  23.                         player:tradeComplete();
  24.                         player:messageSpecial(SENSE_OF_FOREBODING);
  25.                         SpawnMob(17396141):updateClaim(player);
  26.                 end
  27.         end
  28.        
  29. end;
  30.  
  31. -----------------------------------
  32. -- onTrigger Action
  33. -----------------------------------
  34.  
  35. function onTrigger(player,npc)
  36.         player:messageSpecial(NOTHING_OUT_OF_ORDINARY);
  37. end;
  38.  
  39. -----------------------------------
  40. -- onEventUpdate
  41. -----------------------------------
  42.  
  43. function onEventUpdate(player,csid,option)
  44. --printf("CSID: %u",csid);
  45. --printf("RESULT: %u",option);
  46. end;
  47.  
  48. -----------------------------------
  49. -- onEventFinish
  50. -----------------------------------
  51.  
  52. function onEventFinish(player,csid,option)
  53. --printf("CSID: %u",csid);
  54. --printf("RESULT: %u",option);
  55. end;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top