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

GlobalEvent Simple script but.. i think is a good idea =D!

Oks.. I will say something...

I did this script when I was learning of the language LUA, lamentably the script I did not test it completely and I have seen that it has some bugs.

Then... do not use this code, today and this weekend i wil be very busy, but I promise that for Monday or Tuesday I will fix all bugs and i will post a new-working code. Thanks.


Note: Sorry if i'm using a bad english.
 
I was thinking about this script and could be added a feature to limit ilanedri monsters with monsters of the event and certain monsters, with a floor area ilanedri and different too.

= p
 
I have problem with npc :( look:

Code:
[28/06/2009 13:44:09] data/npc/scripts/demon_castle1.lua:47: attempt to call global 'getPlayerEventType' (a nil value)
[28/06/2009 13:44:09] stack traceback:
[28/06/2009 13:44:09] 	data/npc/scripts/demon_castle1.lua:47: in function 'callback'
[28/06/2009 13:44:09] 	data/npc/lib/npcsystem/npchandler.lua:384: in function 'onCreatureSay'
[28/06/2009 13:44:09] 	data/npc/scripts/demon_castle1.lua:9: in function <data/npc/scripts/demon_castle1.lua:9>
 
I have problem with npc :( look:

Code:
[28/06/2009 13:44:09] data/npc/scripts/demon_castle1.lua:47: attempt to call global 'getPlayerEventType' (a nil value)
[28/06/2009 13:44:09] stack traceback:
[28/06/2009 13:44:09] 	data/npc/scripts/demon_castle1.lua:47: in function 'callback'
[28/06/2009 13:44:09] 	data/npc/lib/npcsystem/npchandler.lua:384: in function 'onCreatureSay'
[28/06/2009 13:44:09] 	data/npc/scripts/demon_castle1.lua:9: in function <data/npc/scripts/demon_castle1.lua:9>

My bad sorry, i forget post the function... look the main post and add that function to your functions.lua
 
I don't know why it always loads the last castle, for example demon castle 4 like it's here.
__________________
klekSu.png

You are welcome on kleksoria.com!
Please visit new open tibia forum with it's own ots list. otservers.net!
 
Last edited:
in npc lua script on line 64 shall be

Code:
selfSay('You do not have the ticket for ' .. eventName .. '.', cid)


instead of:

Code:
selfSay('You do not have the ticket for " .. eventName .. ".'

:d

it's great script and I will use it to many events ;d ty
 
Hah, Very well done. I was planning on releasing a WoW-like instance system but your's is too good already.


Edit: And I didn't even realize this was almost a year old >.>;....oops.
 
I still don't get it :s
 
Hey does this still work for tfs 0.3.6? I want to try this tommorow :)
 

Similar threads

Back
Top