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

8.54 tfs 0.3.6pl1 [spell] changeing item 1422 to item 1423 (firecamp's)

iksior

New Member
Joined
Jan 25, 2009
Messages
33
Reaction score
0
Hello ! Today I need spell that change firecamp(id:1422) to fired firecamp(1423) (o.O) for some time that i'll be able to config.
 
i found this talkaction, can any1 rewrite it to spell ?
Code:
function onSay(cid, words, param)
local dir = getCreatureLookDirection(cid)
pos = getCreaturePosition(cid)
 if dir == NORTH then
  pos = {x=pos.x, y=pos.y-1, z=pos.z, stackpos=1}
 elseif dir == EAST then
  pos = {x=pos.x+1, y=pos.y, z=pos.z, stackpos=1}
 elseif dir == SOUTH then
  pos = {x=pos.x, y=pos.y+1, z=pos.z, stackpos=1}
 else
  pos = {x=pos.x-1, y=pos.y, z=pos.z, stackpos=1}
 end

 local getpos = getThingFromPos(pos)
 if getpos.itemid == 6253 then
  doTransformItem(getpos.uid, 6254)
 else
  doPlayerSendCancel(cid, 'Nie ma czego otworzyc')
 end
return true
end
 
Back
Top