simbabrasil
New Member
- Joined
- Apr 23, 2023
- Messages
- 31
- Reaction score
- 1
Hi guys, can smn help me with my script? I need that player could bring back the dummy, need a time to expire the monster and also a block tile like 3x3 sqm so ppl couldnt trap entrances with it, its a item and when player use the item it creates a Training Dummy.
function onUse(cid, item, frompos, item2, topos)
if getTileInfo(getCreaturePosition(cid)).protection == TRUE then
doPlayerSendTextMessage(cid,20,"Go another place")
doSendMagicEffect(getCreaturePosition(cid),2)
return true
end
if (item.itemid == 17171) then
local position = getPlayerPosition(cid)
local monster = Game.createMonster("Training Dummy", position)
if monster then
position:sendMagicEffect(CONST_ME_MAGIC_BLUE)
doPlayerSendTextMessage(cid,25,"Seu Training Monk foi sumonado")
Item(item.uid):remove(1)
return true
end
end
end
function onUse(cid, item, frompos, item2, topos)
if getTileInfo(getCreaturePosition(cid)).protection == TRUE then
doPlayerSendTextMessage(cid,20,"Go another place")
doSendMagicEffect(getCreaturePosition(cid),2)
return true
end
if (item.itemid == 17171) then
local position = getPlayerPosition(cid)
local monster = Game.createMonster("Training Dummy", position)
if monster then
position:sendMagicEffect(CONST_ME_MAGIC_BLUE)
doPlayerSendTextMessage(cid,25,"Seu Training Monk foi sumonado")
Item(item.uid):remove(1)
return true
end
end
end