Chaos ruler
New Member
I wanted to make a talkaction that teleports my summon.
For example /command "Bat <-- and i should teleport in me.. But on some reason it doesn't work. But it should only teleport my summon, not the summon of my enemy.
Also Credits to Kyoushirou who made it. He said it wasn't tested yet, but what could be wrong?
Thanks in advance!
Develutions 8.10 btw.
For example /command "Bat <-- and i should teleport in me.. But on some reason it doesn't work. But it should only teleport my summon, not the summon of my enemy.
Code:
function onSay(cid, words, param)
if param == "" then
doPlayerSendTextMessage(cid, 22, "Please specify one of your summons.")
else
if getCreatureSummons(cid) == getCreatureByName(param) then
if getCreatureName(getCreatureByName(param)) == TRUE and getCreatureMaster(getCreatureByName(param)) == cid then
doTeleportThing(getCreatureByName(param), getCreaturePosition(cid), TRUE)
else
doPlayerSendTextMessage(cid, 22, "You do not have that monster summoned.")
end
end
end
return true
end
Also Credits to Kyoushirou who made it. He said it wasn't tested yet, but what could be wrong?
Thanks in advance!
Develutions 8.10 btw.