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

Lua Function when effect over item (?)

Rayeko

Programmer
Joined
Apr 9, 2008
Messages
185
Reaction score
3
Hi, its me ;E xDD


Just wondering if its possible to make a function that when X effect is played over Y item, then the function will occur.

For example, I cast "exevo frigo hur" and wherever the effects of ice took place, if a clerical mace is in the floor (taking it as Y item), the mace will become an enchanted one. (Because of the function).

I know I can make this by adding a code in the script of the spell, BUT, I dont want it to be just for spells, I want it for effects, no spells.

At least, can someone tell me if this can be possible? If not, I think I will go for only the spells, then xD


Thankss :E
 
Lua:
    for i = {100, 100, 7} do
return doSendMagicEffect(cid, 17, i)
end

add in script before return TRUE
 
Back
Top