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

agomez

Member
Joined
Jan 28, 2009
Messages
211
Reaction score
5
how i can add if you are free acc your advance promotion (voc 9,10,11,12) disappear :p
 
dont work :/
but i see when a premium player log in all accs get in lastday table: 1310509196
even if they have 0 premum days
 
Lua:
if (getPlayerPremiumDays(cid) == 0) and (getPlayerPromotionLevel(cid) >= 9) and (getPlayerPromotionLevel(cid) < 13)  then
doPlayerSetPromotionLevel(cid, getPlayerPromotionLevel(cid) - 4)
end

Also look in database which player's have voc 7294967295 and change it to good voc ID, (I think it will be a GOD, GM or sth from team :p)
 
PHP:
local config = {
	loginMessage = getConfigValue('loginMessage')
}

expRate = getGlobalStorageValue(55555) 
function onLogin(cid)
    if expRate > 0 then
    setPlayerExtraExpRate(cid, expRate)      
    doPlayerSendTextMessage(cid, 18, "The exp rate set to "..expRate.." next exp rate update in next 60 minutes!")
    end
    return TRUE
end  
 
function onLogin(cid)
setPlayerStorageValue(cid, 14755, -1)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
	end

 local msg = getPlayerMessages(getCreatureName(cid))
	if table.maxn(msg) > 0 then
		return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have " .. table.maxn(msg) .. " new message(s).")
	end

	local accountManager = getPlayerAccountManager(cid)
	if(accountManager == MANAGER_NONE) then
		local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
		if(lastLogin > 0) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
			str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
		else
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
		end
 
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
	elseif(accountManager == MANAGER_NAMELOCK) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
	elseif(accountManager == MANAGER_ACCOUNT) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
	end
 
	if(not isPlayerGhost(cid)) then
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	end

	registerCreatureEvent(cid, "PlayerDeath")
	registerCreatureEvent(cid, "Mail")
	registerCreatureEvent(cid, "GuildMotd")
	registerCreatureEvent(cid, "Idle")
	registerCreatureEvent(cid, "SkullCheck")
	registerCreatureEvent(cid, "ReportBug")
	registerCreatureEvent(cid, "Reward")
	registerCreatureEvent(cid, "RainbowOutfit")
	registerCreatureEvent(cid, "VipCheck")
	registerCreatureEvent(cid, 'advance')
	registerCreatureEvent(cid, "onPrepareDeath")
	registerCreatureEvent(cid, "MonsterPortal")
	registerCreatureEvent(cid, "TempleTeleporter")
	registerCreatureEvent(cid, "PvP")
	registerCreatureEvent(cid, "prevent")
	registerCreatureEvent(cid, "SpellUp")
	registerCreatureEvent(cid, "skull amulet")
	registerCreatureEvent(cid, "Firstitem")
	registerCreatureEvent(cid, "Lowpvp")
	registerCreatureEvent(cid, "text")
	registerCreatureEvent(cid, 'stat')
	registerCreatureEvent(cid, "counter")
	registerCreatureEvent(cid, "KillProtection")
	registerCreatureEvent(cid, "VipLook")
	registerCreatureEvent(cid, "recordIp")
end
 
Where's here my script, he?

I added it at the end, try now

Lua:
local config = {
	loginMessage = getConfigValue('loginMessage')
}

expRate = getGlobalStorageValue(55555) 
function onLogin(cid)
    if expRate > 0 then
    setPlayerExtraExpRate(cid, expRate)      
    doPlayerSendTextMessage(cid, 18, "The exp rate set to "..expRate.." next exp rate update in next 60 minutes!")
    end
    return TRUE
end  
 
function onLogin(cid)
setPlayerStorageValue(cid, 14755, -1)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
	end

 local msg = getPlayerMessages(getCreatureName(cid))
	if table.maxn(msg) > 0 then
		return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have " .. table.maxn(msg) .. " new message(s).")
	end

	local accountManager = getPlayerAccountManager(cid)
	if(accountManager == MANAGER_NONE) then
		local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
		if(lastLogin > 0) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
			str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
		else
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
		end
 
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
	elseif(accountManager == MANAGER_NAMELOCK) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
	elseif(accountManager == MANAGER_ACCOUNT) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
	end
 
	if(not isPlayerGhost(cid)) then
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	end

	registerCreatureEvent(cid, "PlayerDeath")
	registerCreatureEvent(cid, "Mail")
	registerCreatureEvent(cid, "GuildMotd")
	registerCreatureEvent(cid, "Idle")
	registerCreatureEvent(cid, "SkullCheck")
	registerCreatureEvent(cid, "ReportBug")
	registerCreatureEvent(cid, "Reward")
	registerCreatureEvent(cid, "RainbowOutfit")
	registerCreatureEvent(cid, "VipCheck")
	registerCreatureEvent(cid, 'advance')
	registerCreatureEvent(cid, "onPrepareDeath")
	registerCreatureEvent(cid, "MonsterPortal")
	registerCreatureEvent(cid, "TempleTeleporter")
	registerCreatureEvent(cid, "PvP")
	registerCreatureEvent(cid, "prevent")
	registerCreatureEvent(cid, "SpellUp")
	registerCreatureEvent(cid, "skull amulet")
	registerCreatureEvent(cid, "Firstitem")
	registerCreatureEvent(cid, "Lowpvp")
	registerCreatureEvent(cid, "text")
	registerCreatureEvent(cid, 'stat')
	registerCreatureEvent(cid, "counter")
	registerCreatureEvent(cid, "KillProtection")
	registerCreatureEvent(cid, "VipLook")
	registerCreatureEvent(cid, "recordIp")

if (getPlayerPremiumDays(cid) == 0) and (getPlayerPromotionLevel(cid) >= 9) and (getPlayerPromotionLevel(cid) < 13) then
doPlayerSetPromotionLevel(cid, getPlayerPromotionLevel(cid) - 4)
end
return true
end
 
1) Do you tried to relog 2x ? It won't work at 1st login (the same as promotion work, to activate it e need to do relog).

2) Do you reload creaturescript's after edit's?

3) Do you save document's before reload?

4) Are you sure that u don't have prem days and have vocation from ID 9 to 12?

5) Are you testing it on normal acc? (GODs sometimes have problems ;p)



I'm out of ideas -.- It's work good for me, when I tested it.
 
Back
Top