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

Action Train System - Kaz carts

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,766
Solutions
1
Reaction score
225
Location
Chile, Santiago
Hey there, this is one of my first scripts that I've made...

First lets paste this on actions.xml

Lua:
<action actionid="x" script="cartkaz.lua"/>

Now go to scripts and create a file called cartkaz.lua and add this inside:

Lua:
local pos3 = {
[y] = {{x=32657, y=31903, z=8}},
[z] = {{x=32676, y=31977, z=15}}
}

function onUse(cid, item, frompos, item2, topos)
if (getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE) then
       doTeleportThing(cid, pos3[item.uid][1], TRUE)
   doSendMagicEffect(getPlayerPosition(cid),10)
   doCreatureSay(cid, "Uff...", TALKTYPE_ORANGE_1)
else 
doPlayerSendCancel(cid,"You can't teleport immediately after fight.")
doSendMagicEffect(getPlayerPosition(cid),2)
end
return true
end

How it works?

Go to the mapeditor, take an itemID 7131 or 7132 or whatever that you want to click use and teleport, set actionID x and uniqueID y and another with the same actionID but uniqueID z.

dibujoje.jpg


You can add more zones, very easy, just add more lines here:

local pos3 = {
[y] = {{x=32657, y=31903, z=8}},
[z] = {{x=32676, y=31977, z=15}},
[m] = {{x=32676, y=31977, z=15}},
[n] = {{x=32676, y=31977, z=15}}

}

Quite simple, and also, you can't use if you are in fight.
 
Last edited:
It isn't, but it works, and I couldn't find any scripts that works, so I made this... You can edit it a little and make it as tibia cip.
 
No, I'm not happy to see so many Cipbia scripts being released.
 
Anyways it works really nice, if you want kill someone and you attack him, he can't teleport :)
 
Back
Top