Hello guys, thats me again...
Im looking for some nice guide/or help in understanding how to make script works on few monsters/items etc than making triliards of almost same lua scripts.
Like example, i have this saga script:
Its working fine etc but as u all know, its like task system.... making 50? sagamonster.lua to load is pretty useless if its possible to make a "table (thats how its called?)"
So any guide/help/explantationts? ;]
Btw its tfs 0,4 rev 3777
and if its important too, source compiled by this guide: C++ - How to make monster attack only player with storage (https://otland.net/threads/how-to-make-monster-attack-only-player-with-storage.254403)
Thanks.
Im looking for some nice guide/or help in understanding how to make script works on few monsters/items etc than making triliards of almost same lua scripts.
Like example, i have this saga script:
Code:
local monster = {
{'Raditz Saga'},
}
local stor = 8000
function onKill ( cid , target )
if isMonster ( target ) and
getCreatureName ( target ) == 'Raditz saga' and
getPlayerStorageValue ( cid ,stor) == 1 then
setPlayerStorageValue ( cid ,8000 , 2 )
end
return true
end
So any guide/help/explantationts? ;]
Btw its tfs 0,4 rev 3777
and if its important too, source compiled by this guide: C++ - How to make monster attack only player with storage (https://otland.net/threads/how-to-make-monster-attack-only-player-with-storage.254403)
Thanks.