Marcin Jałocha
Marcin Jałocha
> I can't test but I have a question. > > Will it fire onLogout after player click logout in client after death? Or how does it work? Because AFAIK...
> Try it: > Die -> click to open Store (it will dont open nothing in case) -> make some right-clicks in the map or move with your keyboard >...
So I checked it and clicking store actually acts like clicking OK. So not sure what are you talking about. Client 1098.
Move it to separate method in game class for example updateCreature(Creature*)?
It actually shouldn't be hard to move to lua, it's bunch of queries and some logic and we have ondeath/onpreparedeath/onkill events, so you can slap skull system there easily. Honestly...
goldenOutfitCache is being cleared on every single reload scripts, I don't think that's expected behaviour.
This event is called too early, with that fix you are setting id twice, It will work cause setId has id == 0 check, but anyway that's workaround and is...
> Can't we just call setId on each creature class consctructor? I believe it sets the id after creature is placed to avoid waste of ids for unplaced creatures, this...
It's not onGetFormulaValues who crash your server, but you passing combat object into the addEvent which gets destroyed upon reload and causes server to crash. That's not how you should...
You definitely do not understand how does that work, to enlighten you a bit https://github.com/otland/forgottenserver/blob/master/src/luascript.cpp#L11823 is the combat really not checked for validity? You are literally trying to use saved...