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

Free promotion in config.lua

Xapuur

New Member
Joined
Sep 15, 2009
Messages
157
Reaction score
0
Location
Chile
TFS 9.31, mysql.

Hello. How i can do the promotion free? I tried in config.lua with
Code:
freePromote = "yes"
freePromotion = "yes"

And not works. Any idea?

Regards

EDIT: Better explainet:
Look, there are two posibilities. The player begins at level 8 and when you advance to level 20 is automatically promoted, or the player begins at level 20 promoted. (Acc manager)
 
Last edited:
2 Options..
Your ot are started? change sorcerer sample, knight, paladin and druid for 2 Promotion..
for all players change
promotion
Lua:
UPDATE players SET promotion = 1;
 
Ok you need script onlogin promoted to 2 promotion?
or only enter and are.. MS, ED, RP and EK?

I understand you don't have website, have 1/1?
 
I understand you don't have website
03.jpg
14.jpg

7.jpg
jh3.jpg
 
I wanna than all are promoted when they create a char. They start with level 20 and promoted with free account. I use account manager.

Thanks
 
Lua:
local cfg{
level = 20,
storage = 1337666
}
function onLogin(cid)
	if(getPlayerStorageValue(cid, storage) ~= 1) then
		doPlayerAddSkill(cid, SKILL__LEVEL, (level - getPlayerLevel(cid)))
		doPlayerSetVocation(cid, getPlayerVocation(cid) + 4)
		setPlayerStorageValue(cid, storage, 1)
	end
	return true
end
 
I have to fix that script to this:
Code:
local level = 20
local storage = 1337666

function onLogin(cid)
	if(getPlayerStorageValue(cid, storage) ~= 1) then
		doPlayerAddSkillTry(cid, SKILL__LEVEL, (level - getPlayerLevel(cid)))
		doPlayerSetVocation(cid, getPlayerVocation(cid) + 4)
		setPlayerStorageValue(cid, storage, 1)
	end
	return true
end

creaturscripts.xml:
Code:
	<event type="login" name="Promotion" script="promotion.lua"/>

And it up fist fighting.. hahaha xd

Look, there are two posibilities. The player begins at level 8 and when you advance to level 20 is automatically promoted, or the player begins at level 20 promoted. (Acc manager)

Both scripts serve me, choose the more easy for you :).
 
Look, there are two posibilities. The player begins at level 8 and when you advance to level 20 is automatically promoted, or the player begins at level 20 promoted. (Acc manager)

TFS 0.2.11.2 (9.31)

Bump !
 
Back
Top