Animera
* * * * *
Campfire script
This happens when you are bored..
I use this script for myself but i deide to share it cuz its 1 minute work anyway just wanted to share my imagination..
Maybe someone with no lua knowledge may like this..
What it does?
When you use a burning torch on a campfire it will add a magiceffect and turn it into a campfire with burning woods instead of just woods.
With text effect included and a 10% chance that the firecamp fail because of wind.
Should work on every server haven't tested it because i can't i am pretty sure it works if not send error code i will fix it.
/data/actions/scripts/other/firecamp.lua
/data/actions/actions.xml
Have fun,
Lagmacun
This happens when you are bored..
I use this script for myself but i deide to share it cuz its 1 minute work anyway just wanted to share my imagination..
Maybe someone with no lua knowledge may like this..
What it does?
When you use a burning torch on a campfire it will add a magiceffect and turn it into a campfire with burning woods instead of just woods.
With text effect included and a 10% chance that the firecamp fail because of wind.
Should work on every server haven't tested it because i can't i am pretty sure it works if not send error code i will fix it.
/data/actions/scripts/other/firecamp.lua
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local random = math.random(1, 100)
if(isInArray(1422, itemEx.itemid)) then
if(random > 10) then
doTransformItem(itemEx.uid, itemEx.itemid + 1)
doSendMagicEffect(toPosition, CONST_ME_HITBYFIRE)
doCreatureSay(toPosition, "Wooosh!", TALKTYPE_ORANGE_1)
else
doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE)
doCreatureSay(toPosition, "The wind blew the firecamp off, Please try again.", TALKTYPE_ORANGE_1)
end
end
return TRUE
end
/data/actions/actions.xml
Code:
<action itemid="2051;2053;2055" script="other/firecamp.lua"/>
Have fun,
Lagmacun
Attachments
-
NRw3WW.png6 KB · Views: 87 · VirusTotal
Last edited: