Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.92 KB | None | 0 0
  1. //###########################################
  2. //* the dark summoner (Fear)                #
  3. //*     teach you two spell                 #
  4. //*         -archant                        #
  5. //*         -bat                            #
  6. //* & teach you level 2 dark astral         #
  7. //*                                         #
  8. //###########################################
  9. 030-1.gat,62,42,0   script  Fear    0, {
  10. onArchantDead:
  11.     set @Archant_dead, 1;
  12.     goto L_main;
  13. end;
  14. L_main:
  15. //var maybe edit ?
  16.     set array @crazy$, "pain's good","well, that's bore me","everybody dies","wanna die ?","badly little " + @honorific$;
  17.     set @true_name$, "Fear" ;
  18.     set @NPCname$, "[strange man]";
  19.     set @mexp, MAGIC_EXPERIENCE & 65535;
  20.  
  21.  
  22. //condition
  23. if (Sex)
  24.     set @honorific$, "boy";
  25. if (!Sex)
  26.     set @honorific$, "girl";
  27. if (MAGIC_FLAGS & MFLAG_KNOWS_SAGATHA)
  28.         goto L_KnowSaghatha;
  29. if (@evil && getskilllv(SKILL_MAGIC_NATURE) > 2)
  30.         goto L_Startsoon;
  31. if(@QUEST_STATUE == 1 && @evil)
  32.         goto L_teachspell;
  33. if(@Archant_dead == 1 && @QUEST_STATUE == 1 && @evil)
  34.         goto L_SPELL_ARCHANT_true;
  35.        
  36. L_KnowSaghatha:
  37.     goto L_crazycommand;
  38. close;
  39.  
  40. L_Startsoon:
  41.         mes @NPCname$;
  42.         mes "the strange man look at you suspiciously";
  43.     next;
  44.         mes @NPCname$;
  45.         mes "\"well, you know the dark path of the magic, "+ strcharinfo(0) +"."\";
  46.         menu    "who are you ?", L_Who,
  47.                 "can you help me to learn more magic", L_teatch,
  48.                 "GoodBye.", -;
  49.         close;
  50.        
  51. L_Who:
  52.         mes @NPCname$;
  53.         mes "\"I'm an old magician of the dark path of magic."\";
  54.     next;
  55.         mes @NPCname$;
  56.         mes "\"But they called me " + @true_name$ + "."\";
  57.         set @NPCname$, "["+ @true_name$ +"]";
  58.     close;
  59.    
  60. L_teatch:
  61.         mes @NPCname$;
  62.         mes "\"I can ... I can ... But magic is long to be learn. I hasn't the time yet to teach it."\";
  63.     next;
  64.         menu    "Please", L_No,
  65.                 "there is no way for be a good dark summoner", L_darksummoner;
  66. L_no:
  67.         mes @NPCname$;
  68.         mes "\"I don't train my nature magic since a long time so I can't help you"\";
  69.     close;
  70.  
  71. L_crazycommand:
  72.         npctalk @crazy$[rand(getarraysize(@crazy$))];
  73.         misceffect sfx_magic_war;
  74.         misceffect sfx_magic_war, strcharinfo(0);
  75.         itemheal -Hp, 0;
  76.     close;
  77. L_darksummoner:
  78.         mes @NPCname$;
  79.         mes "\"well, "+ strcharinfo(0) +" that's begin to be intersting...";
  80.         mes "I can teach you astral magic"\";
  81.         menu    "NeverMind", -,
  82.                 "Please !", L_summon_teach;
  83.         close;
  84.        
  85. L_summon_teach:
  86.         mes @NPCname$;
  87.         mes "\"there is..."\";
  88.     set @SUP_id, SKILL_MAGIC_ASTRAL;
  89.     set @SUP_name$, "Astral Magic";
  90.     set @SUP_xp, 5000;
  91.     set @SUP_lvl, 2;
  92.     callfunc "SkillUp";    
  93.     set @QUEST_STATUE, 1;
  94. close;
  95. L_teachspell:
  96.         mes @NPCname$;
  97.         mes "\"hello, "+ strcharinfo(0) +" "\";
  98.         menu    "can you teach me a spell ?", L_SPELL,
  99.                 "can you teach me more magic ?", L_cannot,
  100.                 "Nevermind", -;
  101.         close;
  102. L_cannot:
  103.         mes @NPCname$;
  104.         mes "\"well, I can't."\";
  105.         close;
  106.        
  107. L_SPELL:
  108.  
  109.     if(@QUEST_STATUE == 1 && @mexp > 125)
  110.             goto L_SPELL_archant;
  111.     if(@QUEST_STATUE == 2 && @mexp > 150);
  112.             goto L_SPELL_bat;
  113.     if(@QUEST_STATUE == 3)
  114.             goto L_NOSPELL;
  115.         mes @NPCname$;
  116.         mes "\"you don't have enought experience about magic "\";
  117.     close;
  118. L_SPELL_archant:
  119.         mes @NPCname$;
  120.         mes "\"with this spell You'll summon archant .But sometimes, when I summon them they are a bit agressive with me "\";
  121.     next;
  122.         mes @NPCname$;
  123.         mes "\"I think you need to be prepare of this little rebellion. So, I've do an little spell for show you there capacity."\";
  124.         npctalk @crazy$[rand(getarraysize(@crazy$))];
  125.         areamonster "030-1.gat", 62, 22, 62, 25, "", 1060, 10, "Fear::onArchantDead";
  126.     close;
  127. L_SPELL_ARCHANT_true:
  128.         mes @NPCname$;
  129.         mes "\"ok "+ strcharinfo(0) +", I stop joking because I saw: you didn't like mine. So the spell is " + getspellinvocation("summon-archant") + " ."\";
  130.         set @QUEST_STATUE, 2;
  131.     close;
  132. L_NOSPELL:
  133.         mes @NPCname$;
  134.         mes "\"I think you know most important spell who I know."\";
  135.     close;
  136. L_SPELL_bat:
  137. //maybe a litlle quest for it.
  138.         mes @NPCname$;
  139.         mes "\"well, it's " + getspellinvocation("summon-bat") + "."\";
  140.     close;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement