poopsiedoodle
Gibe moni plos
Can someone make me a script to use a willow (ID: 2702) to get a Special Flask (ID: 8205) that can be done only once per player?
Last edited:
so use cyko's script
plz next time say what all you need and what use to get what and what is will~ -.-
under this line<action actionid="2222" event="script" value="willow.lua"/>
<action uniqueid="30015" event="script" value="quests/annihilator.lua"/>
local cyko = {
storage = 9999, --add unsuded storage
reward = 8205--itemid as reward
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,cyko.storage) == -1 then
doPlayerAddItem(cid,cyko.reward,1)
doPlayerSendTextMessage(cid,25,"You have found a special flask.")
setPlayerStorageValue(cid,cyko.storage, 1)
else
doPlayerSendTextMessage(cid,25,"The willow is empty.")
end
return true
end
<action uniqueid="9898" event="script" value="willow.lua" />
local storage = 9898
local item = 8205
local sirion = getPlayerStorageValue(cid,storage)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if sirion == -1 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a special flask.")
doPlayerAddItem(cid,item,1)
setPlayerStorageValue(cid,storage,1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
end
return 1
end
It worked for me Cyko. Im sure thats its Siron which is trolling around the forum.
If someone makes a script for you and it doesn't seems to work the way you want, always give a full explanation what you did.
How you added it in the xml, the lua script you added with the name, how you added it in the map, what happens when you use it and what kind of errors you get.
Else there is no way for people to know what's wrong.