Hello everyone, i need to help me with my quest. so this work that :
1.when you splash oil on lever you can use that
2.when you take all things you get item
but when i use lever i see two communications its able to see first that lever is craced and when you splash oil, second you need all things to get item.
http://img710.imageshack.us/img710/5753/medalc.jpg
here is my script :
i will be greatful!
1.when you splash oil on lever you can use that
2.when you take all things you get item
but when i use lever i see two communications its able to see first that lever is craced and when you splash oil, second you need all things to get item.
http://img710.imageshack.us/img710/5753/medalc.jpg
here is my script :
Code:
local splash = {x=1073, y=1026, z=9, stackpos=1}
local liquidId = 2016
local liquidType = 11
function onUse(cid, item, frompos, item2, topos)
oldmedalpos = {x=1074, y=1023, z=9, stackpos=1}
newmedalpos = {x=1073, y=1025, z=9, stackpos=1}
crystalpos = {x=1076, y=1023, z=9, stackpos=1}
sharepos = {x=1078, y=1023, z=9, stackpos=1}
getoldmedal = getThingfromPos(oldmedalpos)
getnewmedal = getThingfromPos(newmedalpos)
getcrystal = getThingfromPos(crystalpos)
getshare = getThingfromPos(sharepos)
local liquid = getThingfromPos(splash)
if (item.uid == 3333 and item.itemid == 1945) and liquid.itemid == liquidId and liquid.type == liquidType and getoldmedal.itemid == 8979 and getcrystal.itemid == 7315 and getshare.itemid == 10531 then
doSendMagicEffect(splash, CONST_ME_MAGIC_RED)
doRemoveItem(liquid.uid)
doRemoveItem(getoldmedal.uid,1)
doSendMagicEffect(oldmedalpos,23)
doRemoveItem(getcrystal.uid,1)
doSendMagicEffect(crystalpos,23)
doRemoveItem(getshare.uid,1)
doSendMagicEffect(sharepos,23)
doCreateItem(2361,1,newmedalpos)
doSendMagicEffect(getnewmedal,23)
doTransformItem(item.uid,1946)
elseif (item.uid == 3333 and item.itemid == 1946) then
doTransformItem(item.uid,1945)
else
doCreatureSay(cid, "The lever is creaking and rusty.", TALKTYPE_ORANGE_1)
doPlayerSendTextMessage(cid,22,"You need all things to get frozen starlight!")
end
return 1
end
i will be greatful!
Last edited: