Kubakos
Well-Known Member
- Joined
- Mar 3, 2010
- Messages
- 964
- Solutions
- 2
- Reaction score
- 56
Hello i have a low fight server, tibia 7.6 and i need to add an exhausted on use fluids in this script:
I will give reput~~
Code:
-- fluids by atolon --
-- fluids fixed by Shampo --
function onUse(cid, item, frompos, item2, topos)
-- itemid means that is a creature
if frompos.x == 65535 then
if item2.itemid == 1 then
if item.type == 0 then
doPlayerSendCancel(cid,"To jest puste.")
else
if item2.uid == cid then
if item.type == 2 then
doPlayerSay(cid,".:Krew:.",16)
elseif item.type == 4 then
doPlayerSay(cid,".:Trucizna:.",16)
doSendMagicEffect(topos,8)
elseif item.type == 3 then
doPlayerSay(cid,".:Piwo:.",16)
elseif item.type == 5 then
doPlayerSay(cid,".:Lemoniada:.",16)
elseif item.type == 11 then
doPlayerSay(cid,".:Olej:",16)
elseif item.type == 15 then
doPlayerSay(cid,".:Wino:.",16)
elseif item.type == 6 then
doPlayerAddMana(cid,150)
doPlayerAddHealth(cid,150)
doSendAnimatedText(topos,".:Mleko:.",199)
doSendMagicEffect(topos,19)
elseif item.type == 10 then
doPlayerAddHealth(cid,100)
doSendMagicEffect(topos, 19)
doSendAnimatedText(topos,".:Zycie:.",180)
elseif item.type == 13 then
doPlayerSay(cid,".:Mocz:.",16)
elseif item.type == 7 then
doPlayerAddMana(cid,100)
doSendAnimatedText(topos,".:Mana:.",71)
doSendMagicEffect(topos,23)
elseif item.type == 19 then
doPlayerSay(cid,".:Bloto:.",16)
elseif item.type == 26 then
doPlayerSay(cid,".:Lawa:.",16)
doSendMagicEffect(topos,6)
elseif item.type == 28 then
doPlayerSay(cid,".:Trujaca woda:.",16)
doSendMagicEffect(topos,8)
else
doPlayerSay(cid,".:Prost:..",16)
end
else
doSendMagicEffect(topos,2)
end
end
--water--
elseif (item2.itemid >= 10000 and item2.itemid <= 10000) or
(item2.itemid >= 1000 and item2.itemid <= 10000) then
doPlayerSendCancel(cid,"Butelka jest po to, aby z niej pic.")
--mud--
elseif item2.itemid == 10000 then
doPlayerSendCancel(cid,"Butelka jest po to, aby z niej pic.")
--lava--
elseif (item2.itemid >= 10000 and item2.itemid < 10000) or item2.itemid == 10000 then
doPlayerSendCancel(cid,"Butelka jest po to, aby z niej pic.")
--mud--
elseif (item2.itemid >= 10000 and item2.itemid <= 10000) then
doPlayerSendCancel(cid,"Butelka jest po to, aby z niej pic.")
--swamp--
elseif (item2.itemid >= 10000 and item2.itemid <= 1000) then
doPlayerSendCancel(cid,"Butelka jest po to, aby z niej pic.")
--cask--
elseif item2.itemid == 10000 then
doPlayerSendCancel(cid,"Butelka jest po to, aby z niej pic.")
elseif item2.itemid == 10000 then
doPlayerSendCancel(cid,"Butelka jest po to, aby z niej pic.")
elseif item2.itemid == 10000 then
doPlayerSendCancel(cid,"Butelka jest po to, aby z niej pic.")
--end cask--
-- Blood/swamp in decayto corpse --NO FINISH--
elseif item2.itemid > 10000 and item2.itemid < 10000 then
doPlayerSendCancel(cid,"Butelka jest po to, aby z niej pic.")
-- End Blood/swamp in decayto corpse --NO FINISH--
else
if item.type == 0 then
doPlayerSendCancel(cid,"To jest puste.")
else
doPlayerSendCancel(cid,"Nie szkoda ci tego.")
end
end
else
doPlayerSendCancel(cid, "Daj to do plecaka.")
return 1
end
return 1
end
I will give reput~~