• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Pvp-e support please.

Nightimarez

New Member
Joined
Jul 24, 2008
Messages
287
Reaction score
2
Alright so, I'm making a Pvp-E server using TFS.
I need players to reset their level 100 every time they relog.
I'd still like them to save their outfit, but not their equipment.

How could these things be done?
 
I couldn't get this script to work properly. It actually enters the query every time a player logs in. I'd like it to just do it the first time the player logs in.

LUA:
function onLogin(cid)
if getPlayerStorageValue(cid, 5473) == -1 then
	db.executeQuery('UPDATE players SET save = 0;')
                                doCreatureSay(cid, "Welcome!", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 5473, 1)
end
return TRUE
end
 
Back
Top