[3.3.5] Custom PlayerScript : resurrection in Gurubashi

Hello all,

I am posting here because I seems like I can’t make a PlayerScript work.

Here is the script (I commented all “unnecessary” stuff to test a minimal code) :

rezGuru.cpp

[]

I modified CMakeLists.txt : (teleportPVP_item is a itemScript that is working great)

set(scripts_STAT_SRCS
${scripts_STAT_SRCS}
Custom/teleportPVP_item.cpp
Custom/rezGuru.cpp

${sources_Custom}

)

and ScriptLoader.cpp :

#ifdef SCRIPTS
void AddSC_teleportPVP_item();
void AddSC_rezGuru();
/* This is where custom scripts’ loading functions should be declared. */

#endif

void AddCustomScripts()
{
#ifdef SCRIPTS
AddSC_teleportPVP_item();
AddSC_rezGuru();
/* This is where custom scripts should be added. */

#endif
}

When in game (in gurubashi), in gm off, and killed by a player from the other faction, nothing happen. (teleported to the graveyard, as in retail)

Do you have any idea on what the problem could be ?

Thanks

Its PVP not PvP

https://github.com/TrinityCore/TrinityCore/blob/6.x/src/server/game/Scripting/ScriptMgr.h#L688

Use the override keyword to notice these things:

https://github.com/TrinityCore/TrinityCore/blob/6.x/src/server/scripts/World/npcs_special.cpp#L289

Thanks a lot for your response !!

I will not be able to try before monday, I will keep you updated.

It is working great, thanks !