Guest User

Untitled

a guest
Oct 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.88 KB | None | 0 0
  1. 034-1.gat,118,59,0|script|#Ambush0|45,1,1,{
  2.  
  3.     set $@AmbushVictimID, getcharid(3);
  4.     donpcevent "#Ambush1::OnAmbush";
  5.     end;
  6.  
  7. }
  8.  
  9. 034-1.gat,119,60,0|script|#Ambush1|45,{
  10. end;
  11.  
  12. OnAmbush:
  13.     attachrid($@AmbushVictimID);
  14.     set @wolvern_amount, 10;   // has to be same value as in birrod.txt
  15.     set @Wolvern_Spawn, 4;
  16.     set $@Wolvern_Global_Amount, $@Wolvern_Global_Amount + @Wolvern_Spawn;
  17.     message strcharinfo(0), "You feel nervous.";
  18.     areamonster "034-1.gat", 113, 55, 122, 63, "", 1089, @Wolvern_Spawn, "#Ambush1::OnWolvernDeath";
  19.     end;
  20.  
  21. OnWolvernDeath:
  22.     set @MobID, 1089; // TODO: adapt
  23.     set wolvern_count, wolvern_count + 1;
  24.     message strcharinfo(0), "wolvern_count" + wolvern_count;
  25.     if (wolvern_count >= @wolvern_amount)
  26.         message strcharinfo(0), "You've hunted down a lot of Wolverns. Maybe you should talk to Birrod?";
  27.     end;
  28.  
  29. }
Add Comment
Please, Sign In to add comment