Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 11-22-2017, 10:00 PM
Drty
Fire Beetle
 
Join Date: Nov 2017
Posts: 6
Default

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.
Reply With Quote
  #3  
Old 11-23-2017, 01:26 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:31 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3