• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AddEvent - yet again problem

sestorme

Member
Joined
Dec 9, 2011
Messages
272
Reaction score
6
Location
Birmingham, UK
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.

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?
 
Back
Top