Jump to content
  • 0
elcontrol00

Help adding this map correctly

Question

Hello hercules! Like the topic says (I would like some help adding this custom map as my main town (@go 0) called "Hyrule") NOTE: I already added PROBLEM is when i relog out of the server and back i end up behind the church in prontera i tried a couple of guides before posting here such as http://rathena.org/b...tera-graveyard/ & also tried http://rathena.org/wiki/@go so i didn't just post this while eating donuts and waiting for an answer<Joke/pat  
Note!: added it to map cache.dat
please help!

 

files!:

 

mapindex.h

Edited by elcontrol00

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hello hercules! Like the topic says (I would like some help adding this custom map as my main town (@go 0) called "Hyrule") NOTE: I already added PROBLEM is when i relog out of the server and back i end up behind the church in prontera i tried a couple of guides before posting here such as http://rathena.org/b...tera-graveyard/ & also tried http://rathena.org/wiki/@go so i didn't just post this while eating donuts and waiting for an answer<Joke/pat  

Note!: added it to map cache.dat

please help!

 

files!:

So if you type "@go 0" it would warp you to Hyrule?, if no then you haven't edited atcommand.c properly.

If it does warps, and the problem is relog doesn't save, check if Hyrule have any mapflag called "nosave", if yes, that's the problem..

Or check if your scripts warps you there from the labels "OnPCLoginEvent:" or "OnPCLoadMapEvent:" ...

 

at last, the strangest, but it worked for me years ago, adding the hyrule map entry at mapnametable.txt

https://github.com/ROClientSide/Translation/blob/master/Data/mapnametable.txt

Share this post


Link to post
Share on other sites
  • 0

 

Hello hercules! Like the topic says (I would like some help adding this custom map as my main town (@go 0) called "Hyrule") NOTE: I already added PROBLEM is when i relog out of the server and back i end up behind the church in prontera i tried a couple of guides before posting here such as http://rathena.org/b...tera-graveyard/ & also tried http://rathena.org/wiki/@go so i didn't just post this while eating donuts and waiting for an answer<Joke/pat  

Note!: added it to map cache.dat

please help!

 

files!:

So if you type "@go 0" it would warp you to Hyrule?, if no then you haven't edited atcommand.c properly.

If it does warps, and the problem is relog doesn't save, check if Hyrule have any mapflag called "nosave", if yes, that's the problem..

Or check if your scripts warps you there from the labels "OnPCLoginEvent:" or "OnPCLoadMapEvent:" ...

 

at last, the strangest, but it worked for me years ago, adding the hyrule map entry at mapnametable.txt

https://github.com/ROClientSide/Translation/blob/master/Data/mapnametable.txt

 

 

Yes it does warp me to Hyrule once i use @go, and no just checked them all and theres only 4 but theres only 2 that  has a warp added to it and it's back to save point plus i have a kafra with save point to Hyrule and the other don't have warps.

[cbox]OnPCLoginEvent:

if( getgmlevel() < .MinGMLevel ) end;

set .GM_Name$[ getarraysize( .GM_Name$ ) ],strcharinfo(0);

set .GM_Level[ getarraysize( .GM_Level ) ],getgmlevel();

end;[/cbox]

 

[cbox]OnPCLoadMapEvent:

if( getgmlevel() < .gm_level ){

.@map$ = strcharinfo(3);

while( .@map < .map_size && .map$[.@map] != .@map$ ) .@map++;

dispbottom "Map "+.@map;

if( .@map < .map_size ){

.@map++;

.@zone = atoi( .map$[.@map] );

.@size = getarraysize( getd( ".zone_"+.@zone ) );

while( strcharinfo(3) == .@map$ && .@size ){

.@i = callsub( OnCheckItem,.@zone );

if( .@i < 0 ) end;

else if( .@i ){

mes " ";

message strcharinfo(0),"Limited Items Exceeded.";

mes "Please ensure all the Items above meet the requirements as stated above.";

close2;

warp "SavePoint",0,0;

end;

[/cbox]

 

[cbox]OnPCLoginEvent:

if (terces_PVP_resets != $terces_PVP_resets){

set PVPDeaths,0;

set @PVPDeathstoday,0;

set #PVPDeathsAccount,0;

set PVPKills,0;

set @PVPKillstoday,0;

set #PVPKillsAccount,0;

set terces_PVP_resets,$terces_PVP_resets;

}

[/cbox]

 

[cbox]OnPCLoadMapEvent:

if (!compare(strcharinfo(3),"g_cas")) end;

if (((.AutoKick && .Active[0]) || (.NoOwner && !getcastledata(strcharinfo(3),1))) && !(.Active[0]&(1< if (getcharid(2) && getcastledata(strcharinfo(3),1) == getcharid(2)) end;

sleep2 1000;

message strcharinfo(0), getcastlename(strcharinfo(3))+" is currently inactive.";

sleep2 5000;

if (compare(strcharinfo(3),"g_cas")) warp "SavePoint",0,0;

}

end;

[/cbox]

I tried adding it to mapnametable.txt though to see and nothing :/ No mapflags either i havent added those yet xD

Edited by elcontrol00

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.