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

Item summons monster

walkingdragon

Advanced OT User
Joined
Sep 9, 2008
Messages
3,620
Reaction score
190
I need a script to where you right click on a certain item and it summons a monster like utevo res. (If possible make it able to enter PZ and teleport to you after you go x squares away from it)
 
okok first of all create a new lua file in "data\actions\scripts\other"
name the file summoncreature.lua
then copy this into the file
Code:
local monster = "Rat"

function onUse (cid, item, fromPosition, itemEx, toPosition)
  doSummonMonster (cid, monster)
  return true
end

then on data\actions.xml copy this

actions.xml
Code:
<action itemid="2567" script="other\summoncreature"/>

now it should be working, lol
 
just change to this
the summoncreature.lua

Code:
local monster = "Marid"

function onUse (cid, item, fromPosition, itemEx, toPosition)
  doSummonMonster (cid, monster)
  doRemoveItem (item.uid,1)
  return true
end

tested on: tfs cryndamson 6pl1

rep if i helped
 
Back
Top