Lbtg
Advanced OT User
- Joined
- Nov 22, 2008
- Messages
- 2,398
- Reaction score
- 165
Hello i wanna make it that if player clicks an stone it heals 100hp and gives 5%hp cooldown for5 minutes ,but if diferent player uses it he can use it and has hes cooldown for him.
or if posible to make that it gives for every person rondom stats
1.100hp/100mp 2sec ,regen for 1 hour
2.+5 all skills ecept magic 1h
3.7% more hp 1h
4.7% more mana 1h
5.+5 magic if mage , but rondom aswell 1h
6.+100 speed for 30 min
7. 1% chance of getting an item id "xxxx"
8. is it posible to make an 2x skills for 1 hour ?
theres is a script i trying to work on
or if posible to make that it gives for every person rondom stats
1.100hp/100mp 2sec ,regen for 1 hour
2.+5 all skills ecept magic 1h
3.7% more hp 1h
4.7% more mana 1h
5.+5 magic if mage , but rondom aswell 1h
6.+100 speed for 30 min
7. 1% chance of getting an item id "xxxx"
8. is it posible to make an 2x skills for 1 hour ?
theres is a script i trying to work on
PHP:
SOUNDS = {"7% MORE HP", "7% MORE MANA!", "SPEEED BOOSTED", "REGENERATION", "SKILLS BOOST", "MAGIC BOOST", "DOUBLE SKILL RATE", "ITEM"}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local random = math.random(1, table.maxn(SOUNDS))
local alreadyused
if (alreadyused == true) then
doCreatureSay(cid, "It is still on cooldown.", TALKTYPE_ORANGE_1, fromPosition)
return false
end
if(fromPosition.x ~= CONTAINER_POSITION) then
doCreatureSay(cid, SOUNDS[random], TALKTYPE_ORANGE_1, fromPosition)
doSendMagicEffect(getCreaturePosition(cid), 2)
doCreatureAddHealth(cid, 100*1000)
else
doCreatureSay(cid, SOUNDS[random], TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), 2)
doCreatureAddHealth(cid, 100*1000)
end
alreadyused = true
wait(60*2)
alreadyused = false
return TRUE
end
function wait(seconds)
local start = os.time()
repeat until os.time() > start + seconds
end