sestorme
Member
This bit works - nicely returns 1.5 monstertalk from 3 mana. It is meant to addEvent that will launch within 1.5s (just this time, in other occasions 1/2 mana used in seconds). Of course it returns nil value and I ain't got a clue why.
Also tried this:
Any clues?
LUA:
local time = manause / 2
doPlayerAddMana(cid, -manause)
doCreatureSay(cid, ""..time.."", TALKTYPE_ORANGE_1)
LUA:
local function haste1(n)
if(n > 0) then
addEvent(haste1, 1000, n - 1)
doPlayerSetVocation(cid, (promo - 8))
doCreatureSay(cid, "Rage over.", TALKTYPE_ORANGE_1)
doPlayerSetStorageValue(cid, 1112, 0)
return true
end
end
addEvent(haste1, time * 1000, 1)
Also tried this:
LUA:
local function haste1()
doPlayerSetVocation(cid, (promo - 8))
doCreatureSay(cid, "Rage over.", TALKTYPE_ORANGE_1)
doPlayerSetStorageValue(cid, 1112, 0)
return true
end
addEvent(haste1, (time * 1000))
Any clues?