Issue information

Issue ID
#7524
Status
Duplicate
Severity
None
Started
ramzelle100
Jul 14, 2013 9:02
Last Post
bgamez23
Jul 21, 2013 22:34
Confirmation
Yes (1)
No (0)

ramzelle100 - Jul 14, 2013 9:02

How to reproduce:

put a NPC that has a Pub.
[quote]
OnInit:
waitingroom "TCG Agent",0;
end;[/quote]

or you can try mine.
[quote]
prontera,146,170,6 script TCG Agent 804,{
mes "^0000FF[ TCG Agent ]^000000";
mes "Hi, ^0000FF"+strcharinfo(0)+"^000000. What do you want?";
mes "^B8860BTransacton Available:^000000";
mes "^006400Sell TCG/s^000000";
mes "^006400Buy TCG/s^000000";
mes "^B8860BExchange Rate: 1TCG = 10m Zeny.^000000";
next;
switch(select("~ ^0055FFSell TCGs^000000!:~ ^0055FFBuy TCGs^000000!")) {
case 1:
mes "^0000FF[ TCG Agent ]^000000";
mes "Please enter an amount of TCG you want to ^ff0000Sell^000000.";
mes " ";
mes "^FF0000Note: Max Zeny is One Billion so don't go beyond that.^000000";
next;
input .@tcgamt;
if( !.@tcgamt ) { mes "^0000FF[ TCG Agent ]^000000"; mes "Invalid amount..."; close; }
if( countitem(7227) < .@tcgamt ) { mes "^0000FF[ TCG Agent ]^000000"; mes "You dont have enough TCG/s..."; close; }
if( ( Zeny + .@tcgamt ) > 1000000000 ) { mes "^0000FF[ TCG Agent ]^000000"; mes "Zeny Limit Exceeded..."; close; }
next;
mes "^0000FF[ TCG Agent ]^000000";
mes "[ Billing list - Selling TCGs ]";
mes "You are Selling : "+.@tcgamt + " TCG";
mes "Price : 10,000,000/TCG";
mes "Total : ^ff0000"+.@tcgamt * 10000000+"^000000.00";
mes ":::::::::::::::::::::";
mes "^FF0000Note: Do you want to continue?.^000000";
next;
if( select("~ Yes:Cancel") == 2 ) close;
delitem 7227,.@tcgamt;
set Zeny,Zeny + .@tcgamt*10000000;
mes "^0000FF[ Credits Trader ]^000000";
mes "Here you go. Thank you!";
mes "Please use my service next time";
close;
case 2:
mes "^0000FF[ TCG Agent ]^000000";
mes "Please enter an amount of TCG you want to ^ff0000Buy^000000.";
mes " ";
mes "^FF0000Note: The TCG/s may drop when you cannot carry them anymore.^000000";
next;
input .@tcgamt;
if( !.@tcgamt ) { mes "^0000FF[ TCG Agent ]^000000"; mes "Invalid amount..."; close; }
next;
mes "^0000FF[ TCG Agent ]^000000";
mes "[ Billing list - Buying TCGs ]";
mes "You are Buying : "+.@tcgamt + " TCG";
mes "Price : 10,000,000/TCG";
mes "Total : ^ff0000"+.@tcgamt * 10000000+"^000000.00";
mes ":::::::::::::::::::::";
mes "^FF0000Note: Do you want to continue?.^000000";
next;
if (checkweight(7227,.@tcgamt)) {
if( Zeny < 10000000*.@tcgamt ) { mes "^0000FF[ TCG Agent ]^000000"; mes "You dont have enough Zeny to buy..."; close; }
set Zeny,Zeny - .@tcgamt*10000000;
getitem 7227,.@tcgamt;
mes "^0000FF[ TCG Agent ]^000000";
mes "Here you go. Thank you!";
mes "Please use my service next time";
close;
} else {
next;
mes "^0000FF[ TCG Agent ]^000000";
mes "You don't have enough space in your inventory.";
close;
}
}

OnInit:
waitingroom "TCG Agent",0;
end;
}[/quote]

Then login to your gm account with right click command.

Click the npc to show the first dialog. then right click on it to kill it.

The npc dialog will remain, then use @load to remove it.

After that try to load that npc again using @loadnpc.

Your map server will crash. no error will be shown on the map server, it will just automatically close.

This post has been edited by ramzelle100 on Jul 14, 2013 9:31

kyeme - Jul 14, 2013 9:14

I can confirm this :)

bgamez23 - Jul 14, 2013 11:22

that issue is almost related on this one.
[url="http://herc.ws/board/tracker/issue-7517-yet-another-map-server-crash/"]http://herc.ws/board/tracker/issue-7517-yet-another-map-server-crash/[/url]

Gepard - Jul 14, 2013 13:18

What version are you using?

kyeme - Jul 14, 2013 13:34

Ops O-O theres a new commit.

Ok Cant reprudce it now.
Fixed @latest thanks :)

This post has been edited by kyeme on Jul 14, 2013 16:29

ramzelle100 - Jul 15, 2013 18:27

Hmm i can still reproduce this on the latest rev.

Steps:

Click on the npc to show npc dialog.

Then right click the npc while the npc dialog is still on your screen and kill it.

use @load, then @reloadscript.

Gepard - Jul 16, 2013 10:25

Can't reproduce it with the information provided.

Awaiting issue confirmation from other users or different way to reproduce.

Ind - Jul 21, 2013 18:41

tried to reproduce, couldn't either.

bgamez23 - Jul 21, 2013 22:34

unable to produce on latest revision. on what os you got this map crashed?