Issue Information
-
#007524
-
0 - None Assigned
-
Duplicate
Issue Confirmations
-
Yes (1)No (0)
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.

Ok Cant reprudce it now.
Fixed @latest thanks

Edited by kyeme, 14 July 2013 - 04:29 PM.
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.
Awaiting issue confirmation from other users or different way to reproduce.