Postado Maio 19, 2022 3 anos PRECISO DE AJUDA COM ESSE CRIPT function onUse(cid, item, fromPosition, itemEx, toPosition) local monstername1 = "Thieving Squirrel" local monstername2 = "Enraged Squirrel" local unique = 4003 local unique2 = 4004 local unique3 = 4005 local s_mission = getPlayerStorageValue(cid, 4002) local m_melf = getPlayerStorageValue(cid, 4003) local s_bite = getPlayerStorageValue(cid, 4004) if item.itemid == 11100 and item.aid == 4003 then -- tree 3 if s_mission == 5 and m_melf == 2 and s_bite >= 1 then doRemoveItem(cid, 11100, 1) doSendMagicEffect(toPosition, 10) doSummonCreature("Thieving Squirrel", toPos) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You've marked the tree, but its former inhabitant has stolen your bait! Get it before it runs away!") setPlayerStorageValue(cid, 4003, 5) setPlayerStorageValue(cid, 4004, -1) end elseif item.itemid == 11100 and item.aid == 4004 then -- tree 2 if s_bite == 2 and m_melf == 3 and s_bite >= 1 then doSendMagicEffect(toPosition, 10) doSummonCreature(monstername1, toPos) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have marked the tree but it seems someone marked it already! He is not happy with your actions and he brought friends!") setPlayerStorageValue(cid, 4003, 4) setPlayerStorageValue(cid, 4004, 1) end elseif item.itemid == 11100 and item.aid == 4005 then -- tree 1 if s_mission == 5 and m_melf == 2 and s_bite >= 3 then doSendMagicEffect(toPosition, 10) doSummonCreature(monstername1, toPos) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have marked the tree, but you also angered the squirrel family who lived on it!") setPlayerStorageValue(cid, 4003, 3) setPlayerStorageValue(cid, 4004, 2) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Fail!") end end return true end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.