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

Spell Wolf Transform

before return true in login.lua you said. Can you be more specific where in login.lua? before what return true? ;)

--- ---
1. Go to \data\creaturescripts\scripts\
2. Open login.lua
3. After this:
function onLogin(cid)

and before this:
return true
end

It's too hard?

#EDIT#
If you don't have return true in onLogin script, then you can't login in game...
 
Well, sorry but i tryed like this:

function onLogin(cid)
if(InitShopComunication == 0) then
local eventServ = addEvent(sql_communication, SQL_COMUNICATION_INTERVAL, {})
InitShopComunication = eventServ
end
registerCreatureEvent(cid, "PlayerDeath")
doPlayerSetStorageValue(cid, 3944, -1)
return TRUE
end

but when i press login at my character nothin happends, it just reloads the character list so i thought i might have missed an end, else, or put it at the wrong place :/ Would you mind correcting me? =)

One more question, what to say when "return to normal" again in game?
 
Well, sorry but i tryed like this:

function onLogin(cid)
if(InitShopComunication == 0) then
local eventServ = addEvent(sql_communication, SQL_COMUNICATION_INTERVAL, {})
InitShopComunication = eventServ
end
registerCreatureEvent(cid, "PlayerDeath")
doPlayerSetStorageValue(cid, 3944, -1)
return TRUE
end

but when i press login at my character nothin happends, it just reloads the character list so i thought i might have missed an end, else, or put it at the wrong place :/ Would you mind correcting me? =)

One more question, what to say when "return to normal" again in game?


1. Try this:
Lua:
function onLogin(cid)
	if(InitShopComunication == 0) then
		local eventServ = addEvent(sql_communication, SQL_COMUNICATION_INTERVAL, {})
		InitShopComunication = eventServ
	end
	registerCreatureEvent(cid, "PlayerDeath")
	doPlayerSetStorageValue(cid, 3944, -1)
	return true
end

2. If it won't work, then try fix something in lines:
Code:
	if(InitShopComunication == 0) then
		local eventServ = addEvent(sql_communication, SQL_COMUNICATION_INTERVAL, {})
		InitShopComunication = eventServ
	end
 
1. Try this:
Lua:
function onLogin(cid)
	if(InitShopComunication == 0) then
		local eventServ = addEvent(sql_communication, SQL_COMUNICATION_INTERVAL, {})
		InitShopComunication = eventServ
	end
	registerCreatureEvent(cid, "PlayerDeath")
	doPlayerSetStorageValue(cid, 3944, -1)
	return true
end

2. If it won't work, then try fix something in lines:
Code:
	if(InitShopComunication == 0) then
		local eventServ = addEvent(sql_communication, SQL_COMUNICATION_INTERVAL, {})
		InitShopComunication = eventServ
	end

Tryed your scipt. This turns up in tfs server console :

[06/05/2010 14:02:29] data/creaturescripts/scripts/login.lua:14: attempt to call global 'doPlayerSetStorageValue' (a nil value)
[06/05/2010 14:02:30] stack traceback:
[06/05/2010 14:02:30] data/creaturescripts/scripts/login.lua:14: in function <data/creaturescripts/scripts/login.lua:8>

and same problem as before.

What do you mean by fix in those lines? you mean the code is wrong? Thanks for taking time :)
 
Tryed your scipt. This turns up in tfs server console :

[06/05/2010 14:02:29] data/creaturescripts/scripts/login.lua:14: attempt to call global 'doPlayerSetStorageValue' (a nil value)
[06/05/2010 14:02:30] stack traceback:
[06/05/2010 14:02:30] data/creaturescripts/scripts/login.lua:14: in function <data/creaturescripts/scripts/login.lua:8>

and same problem as before.

What do you mean by fix in those lines? you mean the code is wrong? Thanks for taking time :)

1. Try change doPlayerSetStorageValue to setPlayerStorageValue, mayby it will help.

2.
you mean the code is wrong?
Mayby, but I don't be sure.
 
1. Try change doPlayerSetStorageValue to setPlayerStorageValue, mayby it will help.

2. Mayby, but I don't be sure.

Works like a charm! changed it in both login.lua and the wolf script :) Only one thing tho, after you removed the wolf outfit you are still strentghened :/


Rep to you! :D made my day :)
 
Replace this:
Lua:
for _, type_ in  pairs({CONDITION_HASTE, CONDITION_OUTFIT, CONDITION_EXHAUST, CONDITION_ATTRIBUTES}) do

for this:
Lua:
for _, type_ in  pairs({CONDITION_HASTE, CONDITION_OUTFIT, CONDITION_EXHAUST, CONDITION_ATTRIBUTES}) do

PS: Distro? TFS 0.3.5? 0.3.6? :)
 
have that problem in 0.4 to.


Remove this line:)

Code:
[COLOR=#B1B100]local[/COLOR] exhaust [COLOR=#66CC66]=[/COLOR] createConditionObject[COLOR=#66CC66]([/COLOR]CONDITION_EXHAUST[COLOR=#66CC66])[/COLOR]
setConditionParam[COLOR=#66CC66]([/COLOR]exhaust, CONDITION_PARAM_SUBID, [COLOR=#CC66CC]2[/COLOR][COLOR=#66CC66])[/COLOR]
setConditionParam[COLOR=#66CC66]([/COLOR]exhaust, CONDITION_PARAM_TICKS, [COLOR=#B1B100]time[/COLOR][COLOR=#66CC66])[/COLOR]
setCombatCondition[COLOR=#66CC66]([/COLOR]combat, exhaust[COLOR=#66CC66])[/COLOR]
 
Used this spell a lot when it worked on 0.3.5, now that its also for .6 i'll use it fo sure ;)
 
Remove this line:)

Code:
[COLOR=#B1B100]local[/COLOR] exhaust [COLOR=#66CC66]=[/COLOR] createConditionObject[COLOR=#66CC66]([/COLOR]CONDITION_EXHAUST[COLOR=#66CC66])[/COLOR]
setConditionParam[COLOR=#66CC66]([/COLOR]exhaust, CONDITION_PARAM_SUBID, [COLOR=#CC66CC]2[/COLOR][COLOR=#66CC66])[/COLOR]
setConditionParam[COLOR=#66CC66]([/COLOR]exhaust, CONDITION_PARAM_TICKS, [COLOR=#B1B100]time[/COLOR][COLOR=#66CC66])[/COLOR]
setCombatCondition[COLOR=#66CC66]([/COLOR]combat, exhaust[COLOR=#66CC66])[/COLOR]

thanks
 
Back
Top