Temp Fix for invalid pointer error ,,, map 999999999

Status
Not open for further replies.
Newbie Spellweaver
Joined
Mar 20, 2008
Messages
6
Reaction score
0
This is a temp fix for this error

open characters.cpp

search for
Code:
charc.map = MySQL::getInt("characters", IDs[i], "map");
Replace with

Code:
        if (MySQL::getInt("characters", IDs[i], "map") != 999999999)
        {
        charc.map = MySQL::getInt("characters", IDs[i], "map");
        }
        else 
        {
        MySQL::setInt("characters", "map", IDs[i], 100000000);        
        charc.map = MySQL::getInt("characters", IDs[i], "map");
        }
Search for
Code:
charc.map = MySQL::getInt("characters", id, "map");
Replace with :

Code:
if (MySQL::getInt("characters", id, "map") != 999999999)
        {
        charc.map = MySQL::getInt("characters", id, "map");
        }
        else 
        {
        MySQL::setInt("characters", "map", id, 100000000);
        charc.map = MySQL::getInt("characters", id, "map");
        }
i know it's a long code but it work

done by me

i dont know if someone did it before me..
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

Did you even had time to test it? :\

But yeah its working, thanks dude.
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

it correct the map 99999999
when going to 4th job map?
or its just wont bug the dumb user who try it?
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

if "map"= 999999999 change "map" to 100000000
TY it work Fine,
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

it correct the map 99999999
when going to 4th job map?
or its just wont bug the dumb user who try it?



99999999 isnt 4th job map it's an error map or what ever.
u get it when u enter some maps in leafre or else
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

eg the 4th job map -_-
i think i have a solution....
we can get the id of the map where in it...
and check what map we going to warp...
lets say if we in the map of birks.. and we wanna go to 4th job... we do
int prevmap=getmapid <this will get prev map we were in
then teleport in portal
and
if(prevmap=<the birks map id>)
{
if "map"= 999999999 change "map" to <mapid for 4th job here>
}
}
:P
then we can do multipy codes and to fix those broking portals
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

eg the 4th job map -_-
i think i have a solution....
we can get the id of the map where in it...
and check what map we going to warp...
lets say if we in the map of birks.. and we wanna go to 4th job... we do
int prevmap=getmapid <this will get prev map we were in
then teleport in portal
and
if(prevmap=<the birks map id>)
{
if "map"= 999999999 change "map" to <mapid for 4th job here>
}
}
:P
then we can do multipy codes and to fix those broking portals

or u can use the FM codes to all teleports??
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

i dont want when they try to teleport someone in leafre
to go to FM...
i want them to go to the map they should be
likw 4th job map...
now i just added it to cap which kinda lame...
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

thanks you for the released works great ^_^
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

lol nice idea for now.
but it can take to henesys...
i think i gonna make it to FM cuz i use FM npc
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

a better solution is to make
UPDATE characters SET map=101000000 WHERE map=999999999

execute automaticly...Its just i dont know if MySQL has an auto function like SQL2000
have
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

lol, long time ago i just went to my maps folder and used simple search and replace
and changed 999999999 to 100000000 xP
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

lol, long time ago i just went to my maps folder and used simple search and replace
and changed 999999999 to 100000000 xP


not that is a silly way of doing things -_-
not just u have duplicated heyesys...
u didnt do nothing.. ur server probly going to crash when someone will go trouw portal... -_-
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

hmmm it seems ill better start working on my idea...
i need some c++ coding power... :/ tough i know c#
 
Re: [Release] Temp Fix for invalid pointer error ,,, map 999999999

not that is a silly way of doing things -_-
not just u have duplicated heyesys...
u didnt do nothing.. ur server probly going to crash when someone will go trouw portal... -_-
well I say good silly things because I had my server running 12 hours without any crash today n.n
and its exactly the same of this code just that I dont emulate it on c++ y just changed it on the xmls
 
Status
Not open for further replies.
Back