Well I'm trying with "doPlayerSetMaxCapacity(cid,x)", but seems like it doesn't work as I wan't to, so i want a way to do like setPlayerCap(cid,cap), i don't really know how to aply sql here so maybe some one can help me xd.
I wan't it to make a script onLogin, set X cap when a player logs in.
Also I found this but I don't have a clue.
in player.cpp
I wan't the capacity to be 6 (max) but it just doesn't work players just doesn't have any cap xd
I wan't it to make a script onLogin, set X cap when a player logs in.
Also I found this but I don't have a clue.
in player.cpp
LUA:
purchaseCallback = saleCallback = -1;
level = shootRange = 1;
rates[SKILL__MAGLEVEL] = rates[SKILL__LEVEL] = 1.0f;
soulMax = 100;
capacity = 400.00;
stamina = STAMINA_MAX;
lastLoad = lastPing = lastPong = OTSYS_TIME();
I wan't the capacity to be 6 (max) but it just doesn't work players just doesn't have any cap xd
Last edited: