gullfisk
- Hoster / Mapper -
Credits to Bazetts for making it.
I just edited it and made i work for 8.21. Dunno about other clients.
I bet most of you have heard the word russian roulette be4.. and this works just like
this..
You have a 16% chance to die and it's up to you how u wanna play it. Last man
standing gets a reward or w/e
russian.lua
actions.xml
change the itemid if u want..
spells.xml
I just edited it and made i work for 8.21. Dunno about other clients.
I bet most of you have heard the word russian roulette be4.. and this works just like
this..
You have a 16% chance to die and it's up to you how u wanna play it. Last man
standing gets a reward or w/e
russian.lua
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.type >= 6 then
doRemoveItem(item.uid, 100)
return -1
end
n = math.random(1,6)
name = getPlayerName(cid)
rem = getCreatureHealth(cid) + getPlayerMana(cid)
if n <= item.type then
doCreatureSay(cid, "This guy got OwN3D!", TALKTYPE_ORANGE_1)
doCreatureAddHealth(cid, - rem)
else
doCreatureSay(cid, "You got lucky! ", TALKTYPE_ORANGE_1)
end
doRemoveItem(item.uid, 100)
return 1
end
actions.xml
Code:
<action itemid="2307" script="other/russian.lua" />
spells.xml
Code:
<rune name="Russian Roulette" id="2307" allowfaruse="1" charges="1" lvl="50" maglv="1" exhaustion="3000" needtarget="1" blocktype="solid" script="custom/russian.lua"/>