View Single Post
  #1  
Old 11-22-2017, 10:43 AM
Drty
Fire Beetle
 
Join Date: Nov 2017
Posts: 6
Default Auto level, etc. in Global_Player.pl

Hi all,

I've been out of the game for a bit, but decided to come back and host a server for some friends and I. On the previous server I hosted, I had some custom code in Global_player.pl (see below) that auto leveled characters skills and gave them some starting equipment.

sub EVENT_ENTERZONE { #message only appears in Cities / Pok and wherever the Wayfarer Camps (LDON) is in. This message won't appear in the player's home city.
if($ulevel == 1 && $qglobals{"skillss"} == 0)
{
quest::scribespells(40);
quest::level(40);
quest::traindiscs(40);
quest::setallskill(200);
quest::setglobal("skillss",1,5,"f");
$client->SetHP($client->GetMaxHP());
$client->SetMana($client->GetMaxMana());
$client->SetEndurance($client->GetMaxEndurance());
quest::summonitem($_) for (34228..34240);
}
}

I'm trying to do the same in the current build of Akka's Repack, but none of the actions are happening when I log in my new character. Am I missing something in that code block? Any help is much appreciated!

Thanks,
Drty
Reply With Quote