Morning people, adventurers and fellow Sourcerers!

I edited this topic because I managed to set xp gains on the characters I killed (For reference, go to the STATS editor. You will need to modify the Act Part (level) and Gain (%of Xp for that level) to make a character reward you. However, since it is still an XP issue, I am trying to make a trigger fire when I enter it so it gives me XP. Right now, I'm using the _GLO_ExplorationBonus template:

IF
DB_ExplorationZones((TRIGGERGUID)_Trigger,(INTEGER)_Act,(INTEGER)_ActPArt,(INTEGER)_Gain)
AND
NOT DB_Subregion(_Trigger,_,_) //Subregions can give XP without being Oneshot
THEN
ProcTriggerRegisterForPlayers(_Trigger);

IF
CharacterEnteredTrigger((CHARACTERGUID)_Player,(TRIGGERGUID)_Trigger)
AND
DB_ExplorationZones(_Trigger,(INTEGER)_Act,(INTEGER)_ActPart,(INTEGER)_Gain)
THEN
ProcAddXPToParty(_Player,_Trigger);
ProcCheckRemoveExplorationZone(_Trigger);


PROC
ProcAddXPToParty((CHARACTERGUID)_Player,(TRIGGERGUID)_Trigger)
AND
DB_ExplorationZones(_Trigger,_Act,_ActPart,_Gain)
AND
DB_IsPlayer(_OtherPlayer)
AND
NOT DB_ExplorationXPGiven(_OtherPlayer,_Trigger)
AND
CharacterIsInPartyWith(_OtherPlayer,_Player,1)
THEN
DB_ExplorationXPGiven(_OtherPlayer,_Trigger);
CharacterAddExplorationExperience(_OtherPlayer,_Act,_ActPart,_Gain);

Right now, nothing is happening. I tried a shorter version:

IF
CharacterEnteredTrigger((CHARACTERGUID)_Player,TRIGGERGUID_LeaveFlodsvidXP_5baf32e7-5877-4707-92ca-1e738934bc27)
THEN
PartyAddExperience((CHARACTERGUID)_Player,1,1,50);

And this one does give me the requested XP (Half of the level 1) but it's firing multiple times (EventTrigger, I don't know how to set OneShotTriggers or DB_ExplorationZones), so I can lvl to 30 in the first door. Any ideas, suggestions?

Last edited by BaltasarNecros; 04/01/18 03:59 AM. Reason: Changed Topic, first issue got resolved.