EyesOfAHawk

Soul Link NPC

Jun 18th, 2018
117
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. prontera,161,185,4  script  Linker  4_M_ROTERT,{
  2.  
  3.     .@name$ = "[ ^0000FFLinker^000000 ]";
  4.     .@Duration = 300000; // Buff duration (ms)
  5.     .@Price = 600000; // Price in zeny
  6.  
  7.     mes(.@name$);
  8.     mesf("Hello %s, do", strcharinfo(PC_NAME));
  9.     mes("you want me to Soul Link you?");
  10.     next();
  11.     if (select("Yes", "No") == 2) {
  12.         mes(.@name$);
  13.         mes("Okay, goodbye!");
  14.         close();
  15.     }
  16.     if (Zeny < .@Price) {
  17.         mes(.@name$);
  18.         mes("You need 600,000 Zeny for a Soul Link.");
  19.         close();
  20.     }
  21.  
  22.     Zeny -= .@Price;
  23.     switch (BaseJob) {
  24.     case Job_Alchemist:
  25.         .@Spirit = SL_ALCHEMIST;
  26.         break;
  27.     case Job_Monk:
  28.         .@Spirit = SL_MONK;
  29.         break;
  30.     case Job_Star_Gladiator:
  31.         .@Spirit = SL_STAR;
  32.         break;
  33.     case Job_Sage:
  34.         .@Spirit = SL_SAGE;
  35.         break;
  36.     case Job_Crusader:
  37.         .@Spirit = SL_CRUSADER;
  38.         break;
  39.     case Job_SuperNovice:
  40.         .@Spirit = SL_SUPERNOVICE;
  41.         break;
  42.     case Job_Knight:
  43.         .@Spirit = SL_KNIGHT;
  44.         break;
  45.     case Job_Wizard:
  46.         .@Spirit = SL_WIZARD;
  47.         break;
  48.     case Job_Priest:
  49.         .@Spirit = SL_PRIEST;
  50.         break;
  51.     case Job_Bard:
  52.     case Job_Dancer:
  53.         .@Spirit = SL_BARDDANCER;
  54.         break;
  55.     case Job_Rogue:
  56.         .@Spirit = SL_ROGUE;
  57.         break;
  58.     case Job_Assassin:
  59.         .@Spirit = SL_ASSASIN;
  60.         break;
  61.     case Job_Blacksmith:
  62.         .@Spirit = SL_BLACKSMITH;
  63.         break;
  64.     case Job_Hunter:
  65.         .@Spirit = SL_HUNTER;
  66.         break;
  67.     case Job_Soul_Linker:
  68.         .@Spirit = SL_SOULLINKER;
  69.         break;
  70.     default:
  71.         if (Upper == ITEMUPPER_UPPER && BaseLevel < 70)
  72.             .@Spirit = SL_HIGH;
  73.         else {
  74.             mes(.@name$);
  75.             mes("Unable to Soul Link.");
  76.             close();
  77.         }
  78.         break;
  79.     }
  80.  
  81.     if (.@Spirit) {
  82.         sc_start2(SC_SOULLINK, .@Duration, 5, .@Spirit);
  83.         skilleffect(.@Spirit, 5);
  84.     }
  85.     close();
  86. }
RAW Paste Data Copied