• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Talkaction help

Himii

Premium User
Premium User
Joined
Jan 19, 2011
Messages
1,268
Solutions
5
Reaction score
188
Location
Sweden
Can anyone post a pretty easy configurable script that make me able to make a talkaction like. /dp or /quest
 
Here You Are
*but not tested , test it and reply for me here*
XML:
	<talkaction words="!dp" event="script" value="dp.lua"/>
LUA:
function onSay(cid, words, param)
ppos = getPlayerPosition(cid)
dp = { x = 32370, y = 32238, z =7 } -- your depot position
if (getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE) then
doTeleportThing(cid, dp, TRUE)
doSendMagicEffect(ppos,65)
else
doPlayerSendCancel(cid,"You can't teleport immediately after fight.")
doSendMagicEffect(ppos,2)
end
return 1
end
Rep++ if it helpful for you..
 
Back
Top