Thread: AA merchant
View Single Post
  #1  
Old 02-01-2009, 04:38 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default AA merchant

On my server, I tried to make a merchant that would sell someone 5 AAs for 2k. I also wanted it to be only level 70s that could talk to him or do the turn in. Everything works swimmingly until I turn in the 2k. At that point, I can about 2 AAs and then lose a random amount of levels. I went from 75 to 52, as well as 70 to 49.

Code:
sub EVENT_SAY{
if ($ulevel >=70){
 if ($text =~/hail/i){
 quest::say("Hello, I have heard that AA exp moves rather slowly on this server, so I am here to take advantage of that and sell level 70s [AA].");
 }
 if ($text =~/AA/i){
 quest::say("Yes, it is two-thousand platinum for 5 AAs. You must be level 70 and have AA experience turned on or it will not work!");
 }
} 
}

sub EVENT_ITEM{
 if ($ulevel >=70){
  if ($platinum ==2000){
  quest::exp(875000000);
  }
 }
}
Reply With Quote