Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #007524

  • 0 - None Assigned

  • Duplicate

Issue Confirmations

  • Yes (1)No (0)
Photo

Map Server Crash

Posted by p!\/aT3 on 14 July 2013 - 09:02 AM

How to reproduce:

put a NPC that has a Pub.

OnInit:
waitingroom "TCG Agent",0;
end;


or you can try mine.

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;
}


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.

What version are you using?

Ops O-O theres a new commit.

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

Edited by kyeme, 14 July 2013 - 04:29 PM.


changed status to: Duplicate

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.

Can't reproduce it with the information provided.

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

tried to reproduce, couldn't either.

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