Tenaria
New Member
- Joined
- Apr 26, 2009
- Messages
- 142
- Reaction score
- 2
Hello Guys.. As the Thread shows, its the Cigarette
Much of us smoking also why not ingame with an advanced Script !
Take it
:thumbup:
Much of us smoking also why not ingame with an advanced Script !
Take it
Code:
function onUse(cid, item, frompos, item2, topos)
doSendMagicEffect(frompos,2)
queststatus = getPlayerStorageValue(cid,99980)
hp = getPlayerHealth(cid)
chance = math.random(2,3)
effect = math.random(29,31)
if queststatus == -1 then
if hp > 30 then
doPlayerSay(cid,"Aaaahh, weeed!",17)
doSendMagicEffect(frompos,36)
doPlayerAddHealth(cid,-30)
setPlayerStorageValue(cid,99980,1)
return 1
else
doPlayerSendCancel(cid,"It is too hard for you.")
end
end
if queststatus == 1 then
if hp > 100 then
doPlayerSay(cid,"Aaaaaaaaahhh...Hard Shit!",17)
doSendMagicEffect(frompos,36)
doPlayerAddHealth(cid,-100)
setPlayerStorageValue(cid,99980,chance)
return 1
else
doPlayerSendCancel(cid,"It is too hard for you.")
end
end
if queststatus == 2 then
if hp > 300 then
setPlayerStorageValue(cid,99980,3)
doPlayerSay(cid,"~Aaaaaaaaaaaaaaaaaaaaaaahh OMG!~",17)
doSendMagicEffect(frompos,36)
doPlayerAddHealth(cid,-300)
return 1
else
doPlayerSendCancel(cid,"It is too hard for you.")
end
end
if queststatus == 3 then
setPlayerStorageValue(cid,99980,-1)
doPlayerSendTextMessage(cid,21,"Please don't smoke that much.")
doPlayerSay(cid,"OK! I stop now.",16)
doSendMagicEffect(frompos,effect)
return 1
end
end
:thumbup: