• 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!

Spell exhausted

Dominik ms

Member
Joined
Jan 20, 2010
Messages
424
Reaction score
6
I want to make, in my oopen server, spells looks like in pokemons online ot. All works, but exhausted is saved in storage value.
~100 summons x ~6 spells gives for me too much values for data baze, this is my problem.
Where better i can save exhausted?? In file?? In item with whom is summoned monster (in attributes) ??
Any proposition??
 
no, you can do it for each player.
like:

LUA:
table = {
-- [cid of player]
[2434743637] = {['spell/summonName'] = exhaustExpiration, ['anotherSpell'] = exhaustExpiration},
[2363894634] = {['spell/summonName'] = exhaustExpiration, ['anotherSpell'] = exhaustExpiration},
...
}
 
so, look like this??

PHP:
attack1 = 
{
['Rat'] = {name = "exori vis", time = 1},
}
byName = 
{
['Rat'] = {actionid = 10001} ,
}
local summName = getCreatureName(getCreatureSummons(cid)

local monster = byName[summName].actionid
local attack = attack1[summName].time
local attack = attack2[summName].time

exhaustionGlobal.make(getPlayerGUIDByName(getCreatureName(cid)), [monster] = attack1)
exhaustionGlobal.make(getPlayerGUIDByName(getCreatureName(cid)), [monster] = attack2)

i dont know ;/
 
I have.
When i use spell, then is calculated script exhaustion.make, but normal storage value (like in first post)

exhaustionGlobal.make is easy to to do

.., [monster] = attack1) << this line, is great??
 
and im answering you, 2 pikachus (rat, whatever) of the same owner will fuck off the spells delays with your current system, i ve made the delay part of PA, just to let you know, noob (?)
 
Back
Top