Complete script tested and working!

This commit is contained in:
talamortis
2018-02-05 18:21:46 +00:00
parent bde36a964b
commit 378b16eab3
2 changed files with 3 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
# mod-indivisual-XP
# DO NOT USE
This Module is for Azerothcore -
# This Module is Still a Work In Progress
# This Module is Still a Work In Progress // Please report any issues!

View File

@@ -94,10 +94,10 @@ public:
if (!me)
return false;
if (atoi(args) > MaxRate || (atoi(args) == 0))
if (atol(args) > MaxRate || (atol(args) == 0))
return false;
me->CustomData.Get<PlayerXpRate>("Individual_XP")->XPRate = (uint32)atoi(args); //Return int from command
me->CustomData.Get<PlayerXpRate>("Individual_XP")->XPRate = (uint32)atol(args); //Return int from command
me->GetSession()->SendAreaTriggerMessage("You have updated your XP rate to %u", me->CustomData.Get<PlayerXpRate>("Individual_XP")->XPRate);
return true;