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

invisible spell need help

Shiand

New Member
Joined
Feb 8, 2009
Messages
8
Reaction score
0
Location
Płock
Hi, I tried to do a script to spell what give player "invisible" Gm (or as a command / invisible, you do not see nick or outfit) which disappears after 3 seconds, and restores us to a normal outfit.

However, the script that did not work, thanks in advance for any help.


local function something(parameters)
doPlayerSay(cid, "I'm invisible!", 16)
executeCommand(cid, "/invisible", "")
doSendMagicEffect(pos, 2)

end

local function something2(parameters)
executeCommand(cid, "/invisible", "")
doPlayerSay(cid, "Ouu..", 16)
end

addEvent(something, 0, parameters)
addEvent(something2, 1300, parameters)
end
 
I think it would be something like this(I don't know if executeCommand exist though) :p:

talkactions/talkactions.xml:
Lua:
<talkaction words="invis" event="script" hide="yes" value="playerGhost.lua"/>
talkactions/scripts/playerGhost.lua:
Lua:
function ghostModeEnd()
	executeCommand(cid, ghost)
	doCreatureSay(cid, "Ouu..", TALKTYPE_SAY)
end
	
function onSay(cid, words, param, channel)

	local timeToEnd = 3 -- Seconds

	if(param == '') then
	
		executeCommand(cid, ghost)
		doCreatureSay(cid, "I'm invisible!", TALKTYPE_SAY)
		addEvent(ghostModeEnd, timeToEnd * 1000)
		
	end
return true
end

don't think it will work though.. it's like my first time making a talkaction xD
 
Last edited:
Small Refresh and more Problems ...... ; )


1) Exaust for a spell if it can be somehow compile in ots
does not work on my Ots; / normal example:
<rune name = "Ultimate Healing" id = "2273" Aggressive = "0" charges = "1" needtarget = "1" maglv = "4" exhaustion = "0" enabled = "1" allowfaruse = "1" script = "uh.lua"> </ rune>

2) spell which creates Item from arenas and delete it later after the time
3)spell that removes only your suumon

this all for 8.0 devland : P


surely nobody want help because this to many work : )
 
Back
Top