• 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!

Premium Points System Help

Lua:
 <event type="advance" name="pointsforlvl" event="script" value="points.lua"/>
login.lua
Lua:
registerCreatureEvent(cid, 'pointsforlvl')
points.lua
Lua:
local t, storage = {
	{200, 30} --- edit 30 for how many points.
}, 256
 
function onAdvance(cid, skill, oldLevel, newLevel)
	if skill ~= SKILL__LEVEL then
		return true
	end
	for i = 1, #t do
		local v = t[i]
		if newLevel >= v[1] and getStorage(storage) < i then
			db.executeQuery('UPDATE accounts SET premium_points=premium_points+'.. v[2] ..' WHERE id=' .. getPlayerAccountId(cid))
			doSetStorage(storage, i)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Congratulations! You have advanced to level ' .. v[1] .. ' and you have earned '.. v[2] ..' Premium Points!')
			doBroadcastMessage('Congratulations! ' .. getCreatureName(cid) .. ' advenced to ' .. v[1] .. 'lvl and got ' .. v[2] .. ' ptz to sms shop.')
			break
		end
	end
	return true
end
 
ty man you're an angel :)

and searz-online is you ots? is the best :) i play it

hey man an other question you know how to block account manager in gesior?

- - - Updated - - -

bump?
 
You can block it using config.lua in your OT's main folder.

If you mean you want to block account 1/1 from login in via website, then just go to your DB and change password of account 1 to a different one, or even delete it (the whole account) if you wish to.

Good luck!
 
@up
FAIL


@fortyy150
Thanks fine mi otserver searz-online ^^
for block account manager need edit config-and-functions.php
search
PHP:
$words_blocked = array('gamemaster', 'game master', 'game-master', "game'master", '--', "''","' ", " '", '- ', ' -', "-'", "'-", 'fuck', 'sux', 'suck', 'noob', 'tutor');
etc.. and you need add account manager in wods blocked example
add account manager:
PHP:
$words_blocked = array('gamemaster', 'game master', 'game-master', "game'master", '--', "''","' ", " '", '- ', ' -', "-'", "'-", 'fuck', 'sux', 'suck', 'noob', 'tutor', 'account manager');

and now nobody create account manager ;)
 
Lua:
 <event type="advance" name="pointsforlvl" event="script" value="points.lua"/>
login.lua
Lua:
registerCreatureEvent(cid, 'pointsforlvl')
points.lua
Lua:
local t, storage = {
	{200, 30} --- edit 30 for how many points.
}, 256
 
function onAdvance(cid, skill, oldLevel, newLevel)
	if skill ~= SKILL__LEVEL then
		return true
	end
	for i = 1, #t do
		local v = t[i]
		if newLevel >= v[1] and getStorage(storage) < i then
			db.executeQuery('UPDATE accounts SET premium_points=premium_points+'.. v[2] ..' WHERE id=' .. getPlayerAccountId(cid))
			doSetStorage(storage, i)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Congratulations! You have advanced to level ' .. v[1] .. ' and you have earned '.. v[2] ..' Premium Points!')
			doBroadcastMessage('Congratulations! ' .. getCreatureName(cid) .. ' advenced to ' .. v[1] .. 'lvl and got ' .. v[2] .. ' ptz to sms shop.')
			break
		end
	end
	return true
end


Give credits to who created it? :ninja:
 
lol, you know spam for crazy? i never say.. i created script , thread finish what talking? o.o
Please shut up - created cykotitan don't know why talk idiot xd i never say i created.. he need script i taken
why don't go spam other thread for you bored? xd i dont talk more with you.. not wasted mi time :(
 
@Cronox
but i want block account manager but no for create character
i wand block account manager for he can't in the web with 1/1

perdon no ablo bien ingles :s quiero blockearlo para que no pueda entrar en la pagina con 1/1 cuenta 1 pass 1 pero
no lo quiero eliminar quiero que ayga pagina y puedan acerse el char por el tibia tambien como este ot

Mega War - Tibia OT Server.
no se puede entrar con 1/1 pero en tibia si

otra cosa en tu ots hay muchas casas con bug y los flash legs tambien se consiguen en bug la verdaad no se donde pero muchos tienen y dicen que hay bug y que no se que el chiste es k al remover todos se me fueron los mios :S
 
Last edited:
Es por que tu tienes sha1 seguramente en la config de encruption y cuando se crea el account se hace encryption plain
lo que tienes que hacer es ir ala database.. y eliminar la cuenta de 1/1 y volver a crearla y adentro metes el acc manager para que se cree con sha1 como el resto y funcione
 
Back
Top