Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.70 KB | None | 0 0
  1. sub EVENT_SAY
  2. {
  3. my $testfaction = $client->GetCharacterFactionLevel(5029);
  4. if($testfaction > 2399)
  5. {
  6. if ($text=~/hail/i)
  7. {
  8. quest::say("It Seems you have proven yourself, I am pretty sure I can upgrade
  9. that old IOG 2.0 for you, but your going to need to bring me a few things. A Gigaton Defribulator, Rallos Zek's Mighty Steel and the original IOG 2.0 you got, the Piercing version.");
  10. quest::set_data($client->CharacterID()."_SuperQuestItemReady2", 1);#CHANGEME
  11. }
  12. elsif ($testfaction < 2400)
  13. {
  14. quest::say("I want absolutely nothing to do with filth such as yourself!");
  15. }
  16. }
  17. #692 Rallos Zeks Mighty Steel, Item 25 Piercer IOG 2.0, and Gigaton Defibulator.
  18. sub EVENT_ITEM {
  19. my $testfaction = $client->GetCharacterFactionLevel(5029);
  20. if (($itemcount{25} == 1) && ($itemcount{692} == 1) && ($itemcount{9558} == 1) && ($testfaction >= 2399) && (quest::get_data($client->CharacterID()."_SuperQuestItemReady2"))) {  #CHANGEME
  21. if (!quest::get_data($client->CharacterID()."_IOG25DONE")) {#CHANGEME
  22. quest::say("Well that is just wonderful , very good job!  Here is your IOG 2.5!!");
  23. quest::emote("reaches into his pack and pulls out a Magnificant Blade. You hold it over your head and look at the camera like Zelda..");
  24. quest::summonitem(9560);  # Instrument of Godlyness 2.5
  25. quest::set_data($client->CharacterID()."_IOG25DONE", 1);#CHANGEME
  26. quest::save();
  27. }
  28. if (quest::get_data($client->CharacterID()."_IOG25DONE")) {#CHANGEME
  29. quest::say("U finished this already sir...");
  30. quest::save();
  31. }
  32. }
  33. else {
  34. if ($item1 > 0) {
  35. quest::summonitem($item1,1);
  36. }
  37. if ($item2 > 0) {
  38. quest::summonitem($item2,1);
  39. }
  40. if ($item3 > 0) {
  41. quest::summonitem($item3,1);
  42. }
  43. if ($item4 > 0) {
  44. quest::summonitem($item4,1);
  45. }
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement