arcemu icon indicating copy to clipboard operation
arcemu copied to clipboard

Warrior Quest: The Affray

Open ghost opened this issue 14 years ago • 2 comments

Quest is not solvable as BigWill is not spawned upon entering the battle area on fray island. Which leads me to a bigger question/issue: In your rep. there are lua and c++ scripts parallel, some instances are partially scripted lua, some c++. The wiki doesn't explain things fully, are those Lua scripts all implemented by default or do you have to drop them in the script folder manually? I am asking this because a quest like this could be easily scripted with lua (and from what I see the lua engine of Arc has a high potential, it is even possible to script many instance events in it) I could even do some simple things if I have some spare time but I don't want to mess with lua scripts if you prefer to code it all in c++ src. I'm just not certain about the pros/and cons there obviously has to be a reason why some scripts are lua, some c++. So I would be very thankful for some sort of explanation ;)

ghost avatar Nov 24 '11 11:11 ghost

Lua scripts are provided as examples. Even if the Lua engine may provide all tools required to script the best event imaginable, the actual C++ implementation lacks of a decent quality of service, making it crash often if strict rules are not followed. http://pastebin.com/1vQL80D3 should gives you an example of how simple it is to crash it: the script stores a reference to a Creature and a GameObject, despawns both and when the global Lua variables are accessed, they point to free'd memory, causing a crash. You can find more details at https://sourceforge.net/apps/trac/arcemu/ticket/129 and at http://arcemu.org/forums/index.php?showtopic=25274 .

jackpoz avatar Nov 24 '11 15:11 jackpoz

So those scripts are not used by the server by default? Alright ;) I guess I leave those instances and quests to the C++ fraction, it's probably better than having unstable stuff/crashes

ghost avatar Nov 24 '11 16:11 ghost

I'm going to close this and track progress in the newer issue #409 as that has more details.

dfighter1985 avatar May 29 '23 14:05 dfighter1985