Issue information

Issue ID
#8130
Status
Needs more Info
Severity
None
Started
kyeme
Apr 3, 2014 0:41
Last Post
pan
Apr 20, 2014 17:47
Confirmation
Yes (1)
No (0)

kyeme - Apr 3, 2014 0:41

If there's an 'invalid map' placed in your savepoint script like this :
savepoint "invalidmap",x,y;

You may then be able to generate a bug wherein you can abused it in Bossmaps or even during Guildwars (WOE) because when a player who has an invalidmap savepoint, he/she will be respawned on the exact place/coordinates where he/she died.

Here's the link for the video:
[url="https://www.youtube.com/watch?v=rF1EnBcu1Rc"]https://www.youtube.com/watch?v=rF1EnBcu1Rc[/url]

Culprit: [url="https://github.com/HerculesWS/Hercules/blob/master/npc/re/cities/izlude.txt"]https://github.com/HerculesWS/Hercules/blob/master/npc/re/cities/izlude.txt[/url]

[code=:0] function script F_IzludeChannel { mes "[Izlude Copy Warper]"; mes "Izlude is a verly lively place is it not?"; mes "I am here to help make Izlude feel more smooth!"; mes "I can send you to another copy of Izlude."; mes "Do you want to go to another copy?"; next; set .@i, select(getarg(0)+":Never mind"); if (.@i < 6) { setarray .@maps$[1],"izlude","izlude_a","izlude_b","izlude_c","izlude_d"; savepoint .@maps$[.@i],128,98; warp .@maps$[.@i],128,98; end; } close; } [/code]


Note: I dont have izlude_a,b,c,d maps

My suggestion to avoid or prevent this bug from happening or occuring, If there's an 'invalid map' placed in your savepoint script like the one I showed above, you should get an error so that the bug will be prevented.

This post has been edited by kyeme on Apr 3, 2014 0:43

evilpuncker - Apr 3, 2014 2:32

I've experienced this sometimes with a live server and it is really weird :D

pan - Apr 3, 2014 2:36

[quote name="kyeme" timestamp="1396485718"]
If there's an 'invalid map' placed in your savepoint script like this :
savepoint "invalidmap",x,y;

You may then be able to generate a bug wherein you can abused it in Bossmaps or even during Guildwars (WOE) because when a player who has an invalidmap savepoint, he/she will be respawned on the exact place/coordinates where he/she died.

Here's the link for the video:
...

Culprit: [url="https://github.com/HerculesWS/Hercules/blob/master/npc/re/cities/izlude.txt"]https://github.com/HerculesWS/Hercules/blob/master/npc/re/cities/izlude.txt[/url]


Note: I dont have izlude_a,b,c,d maps

My suggestion to avoid or prevent this bug from happening or occuring, If there's an 'invalid map' placed in your savepoint script like the one I showed above, you should get an error so that the bug will be prevented.[/quote]If you don't have those maps you should rebuild your mapcache, or errors like that will happen. If you open your script.c and find "BUILDIN(savepoint) {" you'll see that if a map is invalid, i.e., isn't cached your savepoint will remain the same.
Or is this happening with maps that are available?

This post has been edited by pan on Apr 4, 2014 2:11