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

Training monk Script :)

lewis1234

Be Smart.
Joined
Oct 9, 2011
Messages
108
Solutions
1
Reaction score
10
Hello i dont know if this is possible But my friend made a Rpg and Wanted it so people cant just Exit tibia and bot all night So he wanted a Script so when they kill a Training monk they get sent to Temple if u understand me :) Rep+ if u can help xD
 
Creaturescripts.xml
Lua:
	<event type="kill" name="Monster" event="script" value="monsterkill.lua"/>

login.lua (add this line above return true)
Lua:
registerCreatureEvent(cid, "Monster")

monsterkill.lua
Lua:
function onKill(cid, target, lastHit)  
 
        if isPlayer(cid) and (getCreatureName(target):lower() == "training monk") then
         doPlayerSendTextMessage(cid,21,"You have been teleported to the temple because you killed a Training Monk.")
         doTeleportThing(cid, {x = 95, y = 113, z = 7})
        end
    return TRUE
end
 
Last edited:
Back
Top