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 |
Update - Looks like this is done in LUA now so I have some learning to do. If anyone can give me the quick and dirty way to accomplish this in the global_player.lua file, I would much appreciate it!
Edit - I'll post this in the LUA forum as well as I don't think I move/delete it from here. |
You do not need to use LUA, unless you prefer to and/or have reason to (i.e. custom quests you wrote, had written or copy/pasted from somewhere that are in LUA). If you wish to use Perl, then rename the global_player.lua to global_player.lu$ and it (EQEmu) will use the Perl variant instead.
|
All times are GMT -4. The time now is 11:13 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.