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

Nowa postac, nowy błąd

Status
Not open for further replies.

Burczyk

New Member
Joined
Oct 10, 2011
Messages
94
Reaction score
3
Witam, gdy na moim serwerze zrobię nową postać to występuje taki błąd
bn0qoK2KKtY.png
 
masz blad w creaturescripts - loadBuffer 8 lijnika pokaz ten caly plik
 
Lua:
local config = {
	loginMessage = getConfigValue('loginMessage'),
	useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}

local config = {
[1] = {lookType=40},
[2] = {lookType=90},
[3] = {lookType=90},
[4] = {lookType=50},

}

function onLogin(cid)
if config[getPlayerVocation(cid)] then
doCreatureChangeOutfit(cid, config[getPlayerVocation(cid)]) end
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end



		

		
	if getPlayerLevel(cid) <= 50 then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have protection to 50lvl and if you dead dont lose items")
		
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Koniecznie przeczytaj regulamin: http://dbzf.y0.pl/")
		

		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, "Mail")
	registerCreatureEvent(cid, "GuildMotd")

	registerCreatureEvent(cid, "Idle")
	if(config.useFragHandler) then
		registerCreatureEvent(cid, "SkullCheck")
	end
	

	registerCreatureEvent(cid, "ReportBug")
	registerCreatureEvent(cid, "AdvanceSave")
	registerCreatureEvent(cid, "advLv")
	registerCreatureEvent(cid, "fullUp")
	registerCreatureEvent(cid, "owned")
	registerCreatureEvent(cid, "obracanie")


	return true
end
 
Last edited:
ja pierdole, ocenzurowałeś linijkę w której jest błąd

brawo
 
są tam powtarzające się locale jak np : [98] = {lookType=90}, [99] = {lookType=90},
 
Code:
[B]local[/B]
[COLOR=#333333][FONT=monospace]config[/FONT][/COLOR][LEFT][COLOR=#66CC66][FONT=monospace]=[/FONT][/COLOR]
[COLOR=#66CC66][FONT=monospace]{[/FONT][/COLOR][/LEFT]


[COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]1[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]40[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]2[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]90[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]3[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]90[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]4[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]50[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR] [COLOR=#66CC66][FONT=monospace]}[/FONT][/COLOR]
OMG. Po co ci ten przecinek na końcu w tabeli :O ?​
 
Code:
[B]local[/B]
[COLOR=#333333][FONT=monospace]config[/FONT][/COLOR][LEFT][COLOR=#66CC66][FONT=monospace]=[/FONT][/COLOR]
[COLOR=#66CC66][FONT=monospace]{[/FONT][/COLOR][/LEFT]


[COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]1[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]40[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]2[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]90[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]3[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]90[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#CC66CC]4[/COLOR][COLOR=#66CC66]][/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#66CC66]{[/COLOR][COLOR=#333333]lookType[/COLOR][COLOR=#66CC66]=[/COLOR][COLOR=#CC66CC]50[/COLOR][COLOR=#66CC66]}[/COLOR][COLOR=#66CC66],[/COLOR] [COLOR=#66CC66][FONT=monospace]}[/FONT][/COLOR]
OMG. Po co ci ten przecinek na końcu w tabeli :O ?​
Zauważ że on mógł nie dać tu całości..

Burczyk, A w mods coś ciekawego masz?
 
Problem rozwiązany, było to spowodowane przez first items mod gdzie była zła pętla.
 
Last edited:
Status
Not open for further replies.
Back
Top