Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Help] Falls GS

Junior Spellweaver
Joined
Dec 6, 2015
Messages
116
Reaction score
34
Files [Release] Exillum S3 (Reedlan + Cutoms)

I tried everything I could, this feature should in all the reedlan builds and so on..GS crashes when you try to run this code
GS crashes when you try to call this function
Versgar - [Help] Falls GS - RaGEZONE Forums
 
Last edited:
Junior Spellweaver
Joined
Aug 7, 2010
Messages
137
Reaction score
138
Well, first of all you should check results of each function.

1)
gObjAddMonster result is stored into mIndex variable. I'm not sure what is the fail result for that function, but i'm going to assume it's -1.

After calling that function you need to compare mIndex with -1 this way:

Code:
///- Check if server was able to create a new monster.
if (mIndex == -1)
{
//- LOG HERE
return;
}

2)
I don't know if gObjSetMonster returns something or not, but in case it returns something you should check if the result failed.

3)
After assigning OBJECTSTRUCT* gObj variable you should check if gObj is null like this.
If you checked mIndex before this, then this should never be null. But just in case add the check and add a log.

Code:
///- If you are using an old version of visual studio maybe you need to use NULL instead of nullptr
if(gObj == nullptr) 
{
//- LOG HERE
return;
}

4) And a final hint.
I assume that gObjSetMonster function already assign monster class. So you can just remove gObj->Class = 499;
This won't have any negative or positive effect. Just code reduction.


EDIT:
I haven't noticed this, but i'm not sure why you are using Map 5. Selupan map is 58
 
Upvote 0
Junior Spellweaver
Joined
Dec 6, 2015
Messages
116
Reaction score
34
I haven't noticed this, but i'm not sure why you are using Map 5. Selupan map is 58
S3 server files (Reedlan + Cutoms) - replaced Place of Exille with Raklion
 
Upvote 0
Back
Top