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

Lua Help with thrones :S

sebiche

New Member
Joined
Dec 5, 2008
Messages
11
Reaction score
0
Hi, i have this script, but don´t works ( is a movement )
is for the throne for one quest, i have tfs 0.3.6
and not works ( not show errors in console )

Code:
function onStepIn(cid, item, position, fromPosition, param, words)
getPlayerStorageValue(cid,9992)
	doPlayerSendTextMessage(cid,22,"You have drown the soul of the vampires.")
doPlayerSetStorageValuee(cid,9992,1)
end

someone can make this script for tfs 0.3.6 plz :D??
EDIT: SORRY FOR MI INGLISH XDD
 
try this:
Code:
function onStepIn(cid, item, position, fromPosition, param, words)
if getPlayerStorageValue(cid,9992) then
doPlayerSendTextMessage(cid,22,"You have drown the soul of the vampires.")
doPlayerSetStorageValue(cid,9992,1)
end

under@ ty
 
Last edited:
try this:
Code:
[COLOR="Red"]function[/COLOR] onStepIn(cid, item, position, fromPosition, param, words)
if getPlayerStorageValue(cid,9992) then
doPlayerSendTextMessage(cid,22,"You have drown the soul of the vampires.")
doPlayerSetStorageValue(cid,9992,1)
[COLOR="Red"]end[/COLOR]

under@ ty

I think IF is missing an END. Function have END but IF not.
 
wtf.

Code:
function onStepIn(cid, item, position, fromPosition)
	return getPlayerStorageValue(cid, 9992) < 1 and doPlayerSendTextMessage(cid, 22, "You have drown the soul of the vampires.") and setPlayerStorageValue(cid, 9992, 1)
end
 
Back
Top