Buff your players example aint working
Howdy all
So i tryed to implement the scripts for "buff your players" and nothing happens. i am referencing: https://github.com/EQEmu/Server/wiki/Buff-your-Players Maybe i missinterpret things here. It sais i can simply add the code to global_player.pl: Code:
sub EVENT_LEVEL_UP { Is that the problem? Do i have to add those quests (train discs, skills, spells) first? If so where do i put them? And what or where is the trigger for "sub Event_LEVEL_UP"? Do i need to add a trigger somewhere as well? Thanks guys EDIT: Im using the windows installer: https://github.com/EQEmu/Server/wiki/Windows-Server |
After further googling around i found out, that the quests should be present within "questmgr.cpp".
Is that a physical file wich should be in the eqemu directory? Maybe the windows installer comes without it? |
You just need to add what you're trying to do to the global_player.pl. The subroutine SUB EVENT_LEVEL_UP would trigger anytime a player levels. The example given would train discs on level up.
I've referenced the ones you're probably intersted in: Code:
quest::scribespells(maxlevel, minlevel) # Scribes all spells up to the specified level. So your global_player.pl would look something like: Code:
sub EVENT_LEVEL_UP { |
Hmm your code reflects what i posted without the comment. I can try it again but i dont think it will work.
On a side note, when i use #level command to test it out, it should trigger as well right? |
Quote:
|
This should handle all but trading- and spec skills:
Code:
sub EVENT_LEVEL_UP { |
it still doesent work :confused:
i tryed your examples and it does not work. why do i have a global_player.lua file next to the global_player.pl do i need to add it to the lua one? is maybe perl old and lua is new? but if i need to add it to the lua one, i guess it might need to be altered to work there? |
Went throu the trouble to add NPCs and add the scripts to them for skills, disc and spell trainer.
That works .. guess it will have to do :) |
Quote:
|
I found it easier to make the npc version where you just hail and it trains for you. it should be on the same page. the skill on the npc only does the class skills I believe.
|
All times are GMT -4. The time now is 05:15 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.