-
Posts
33 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Newbiedev-chan
-
-
hello i encounter this error when i overlap requierd items can anyone help me fix this problem thank you.
here's the script.
Spoilerprontera,138,224,5 script Potion Trader 982,{
set @name$,"[^FF0000"+strnpcinfo(1)+"^000000]";mes @name$;
mes "I can convert your Siege White Potion to Siege Blue Potion and Siege Blue Potion to Siege White Potion.";
next;
mes "^FF0000Please make sure you have enough item slot for this transaction.^000000";
mes "^FF0000We (GM TEAM) are not responsible of any loss or if you drop the exchange items.^000000";next;
mes "^0000EE2 Siege White Potion^000000 = ^FF00001 Siege Blue Potion";
mes "^0000EE2 Siege Blue Potion^000000 = ^FF00001 Siege White Potion";
next;
switch(select("^0000EE(Siege White Potion)^000000 to ^FF0000(Siege Blue Potion):^0000EE(Siege Blue Potion)^000000 to ^FF0000(Siege White Potion)")) {case 1:
next;
mes @name$;
mes "How many "+getitemname(11504)+" do you want?";
input .@item_count ;
if( .@item_count == 0 ) close;
if(countitem(11503) >= 5001){
mes " ";
mes "Your Inventory is full";
mes "Your "+getitemname(11503)+" is more than 5,000 put some in storage";
close;
}
delitem 11503,(.@item_count*2);
getitem 11504,.@item_count;
next;
mes @name$;
mes "There you go! You got your "+.@item_count+"x "+getitemname(11504)+". Hope to see you again!";
close;
case 2:
next;
mes @name$;
mes "How many "+getitemname(11503)+" do you want?";
input .@item_count ;
if( .@item_count == 0 ) close;
if(countitem(11504) >= 5001){
mes " ";
mes "Your Inventory is full";
mes "Your "+getitemname(11504)+" is more than 5,000 put some in storage";
close;
}
delitem 11504,(.@item_count*2);
getitem 11503,.@item_count;
next;
mes @name$;
mes "There you go! You got your "+.@item_count+"x "+getitemname(11503)+". Hope to see you again!";
close;}
} -
so, i manually apply the refine UI interface but i got this error on clif.cpp when i recompile my server.
SpoilerCXX clif.cpp
clif.cpp: In function \u2018void clif_refineui_info(map_session_data*, uint16)\u2019:
clif.cpp:21132:59: error: invalid application of \u2018sizeof\u2019 to incomplete type \u2018clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
^
clif.cpp:21132:125: error: invalid application of \u2018sizeof\u2019 to incomplete type \u2018clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM_SUB\u2019
uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
^
clif.cpp:21139:3: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
p->packetType = HEADER_ZC_REFINE_ADD_ITEM;
^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21139:18: error: \u2018HEADER_ZC_REFINE_ADD_ITEM\u2019 was not declared in this scope
p->packetType = HEADER_ZC_REFINE_ADD_ITEM;
^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21139:18: note: suggested alternative: \u2018PACKET_ZC_REFINE_ADD_ITEM\u2019
p->packetType = HEADER_ZC_REFINE_ADD_ITEM;
^~~~~~~~~~~~~~~~~~~~~~~~~
PACKET_ZC_REFINE_ADD_ITEM
clif.cpp:21140:3: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
p->packtLength = length;
^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21141:3: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
p->itemIndex = client_index( index );
^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21141:17: error: \u2018client_index\u2019 was not declared in this scope
p->itemIndex = client_index( index );
^~~~~~~~~~~~
clif.cpp:21141:17: note: suggested alternative: \u2018client_tick\u2019
p->itemIndex = client_index( index );
^~~~~~~~~~~~
client_tick
clif.cpp:21142:3: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
p->blacksmithBlessing = 0; //TODO: required amount of "Blacksmith Blessing"(id: 6635)
^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21145:4: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
p->req.itemId = client_nameid( materials.cost.nameid );
^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21145:22: error: \u2018client_nameid\u2019 was not declared in this scope
p->req.itemId = client_nameid( materials.cost.nameid );
^~~~~~~~~~~~~
clif.cpp:21145:22: note: suggested alternative: \u2018clif_name\u2019
p->req.itemId = client_nameid( materials.cost.nameid );
^~~~~~~~~~~~~
clif_name
clif.cpp:21146:4: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
p->req.chance = materials.chance;
^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21147:4: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
p->req.zeny = materials.cost.zeny;
^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21150:17: error: invalid use of incomplete type \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
WFIFOSET( fd, p->packtLength );
^~
clif.cpp:21132:33: note: forward declaration of \u2018struct clif_refineui_info(map_session_data*, uint16)::PACKET_ZC_REFINE_ADD_ITEM\u2019
uint16 length = sizeof( struct PACKET_ZC_REFINE_ADD_ITEM ) + material_count * sizeof( struct PACKET_ZC_REFINE_ADD_ITEM_SUB );
^~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp: In function \u2018void clif_parse_refineui_add(int, map_session_data*)\u2019:
clif.cpp:21159:17: error: \u2018server_index\u2019 was not declared in this scope
uint16 index = server_index( RFIFOW( fd, 2 ) );
^~~~~~~~~~~~
clif.cpp:21159:17: note: suggested alternative: \u2018equip_index\u2019
uint16 index = server_index( RFIFOW( fd, 2 ) );
^~~~~~~~~~~~
equip_index
clif.cpp: In function \u2018void clif_parse_refineui_refine(int, map_session_data*)\u2019:
clif.cpp:21184:32: error: invalid use of incomplete type \u2018struct clif_parse_refineui_refine(int, map_session_data*)::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
uint16 index = server_index( p->index );
^~
clif.cpp:21182:9: note: forward declaration of \u2018struct clif_parse_refineui_refine(int, map_session_data*)::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
struct PACKET_CZ_REFINE_ITEM_REQUEST* p = (struct PACKET_CZ_REFINE_ITEM_REQUEST*)RFIFOP( fd, 0 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21184:17: error: \u2018server_index\u2019 was not declared in this scope
uint16 index = server_index( p->index );
^~~~~~~~~~~~
clif.cpp:21184:17: note: suggested alternative: \u2018equip_index\u2019
uint16 index = server_index( p->index );
^~~~~~~~~~~~
equip_index
clif.cpp:21185:21: error: invalid use of incomplete type \u2018struct clif_parse_refineui_refine(int, map_session_data*)::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
uint16 material = p->itemId;
^~
clif.cpp:21182:9: note: forward declaration of \u2018struct clif_parse_refineui_refine(int, map_session_data*)::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
struct PACKET_CZ_REFINE_ITEM_REQUEST* p = (struct PACKET_CZ_REFINE_ITEM_REQUEST*)RFIFOP( fd, 0 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clif.cpp:21186:34: error: invalid use of incomplete type \u2018struct clif_parse_refineui_refine(int, map_session_data*)::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
bool use_blacksmith_blessing = p->blacksmithBlessing != 0; // TODO: add logic
^~
clif.cpp:21182:9: note: forward declaration of \u2018struct clif_parse_refineui_refine(int, map_session_data*)::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
struct PACKET_CZ_REFINE_ITEM_REQUEST* p = (struct PACKET_CZ_REFINE_ITEM_REQUEST*)RFIFOP( fd, 0 );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from clif.cpp:21482:0:
clif_packetdb.hpp: In function \u2018void packetdb_readdb()\u2019:
clif_packetdb.hpp:2346:10: error: \u2018HEADER_ZC_REFINE_OPEN_WINDOW\u2019 was not declared in this scope
packet( HEADER_ZC_REFINE_OPEN_WINDOW, sizeof( struct PACKET_ZC_REFINE_OPEN_WINDOW ) );
^
clif_packetdb.hpp:7:48: note: in definition of macro \u2018packet\u2019
#define packet(cmd,length) packetdb_addpacket(cmd,length,NULL,0)
^~~
clif_packetdb.hpp:2346:84: error: invalid application of \u2018sizeof\u2019 to incomplete type \u2018packetdb_readdb()::PACKET_ZC_REFINE_OPEN_WINDOW\u2019
packet( HEADER_ZC_REFINE_OPEN_WINDOW, sizeof( struct PACKET_ZC_REFINE_OPEN_WINDOW ) );
^
clif_packetdb.hpp:7:52: note: in definition of macro \u2018packet\u2019
#define packet(cmd,length) packetdb_addpacket(cmd,length,NULL,0)
^~~~~~
clif_packetdb.hpp:2347:20: error: \u2018HEADER_CZ_REFINE_ADD_ITEM\u2019 was not declared in this scope
parseable_packet( HEADER_CZ_REFINE_ADD_ITEM, sizeof( struct PACKET_CZ_REFINE_ADD_ITEM ), clif_parse_refineui_add, 0 );
^
clif_packetdb.hpp:8:67: note: in definition of macro \u2018parseable_packet\u2019
#define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
^~~
clif_packetdb.hpp:2347:88: error: invalid application of \u2018sizeof\u2019 to incomplete type \u2018packetdb_readdb()::PACKET_CZ_REFINE_ADD_ITEM\u2019
parseable_packet( HEADER_CZ_REFINE_ADD_ITEM, sizeof( struct PACKET_CZ_REFINE_ADD_ITEM ), clif_parse_refineui_add, 0 );
^
clif_packetdb.hpp:8:71: note: in definition of macro \u2018parseable_packet\u2019
#define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
^~~~~~
clif_packetdb.hpp:2348:10: error: \u2018HEADER_ZC_REFINE_ADD_ITEM\u2019 was not declared in this scope
packet( HEADER_ZC_REFINE_ADD_ITEM, -1 );
^
clif_packetdb.hpp:7:48: note: in definition of macro \u2018packet\u2019
#define packet(cmd,length) packetdb_addpacket(cmd,length,NULL,0)
^~~
clif_packetdb.hpp:2348:10: note: suggested alternative: \u2018PACKET_CZ_REFINE_ADD_ITEM\u2019
packet( HEADER_ZC_REFINE_ADD_ITEM, -1 );
^
clif_packetdb.hpp:7:48: note: in definition of macro \u2018packet\u2019
#define packet(cmd,length) packetdb_addpacket(cmd,length,NULL,0)
^~~
clif_packetdb.hpp:2349:20: error: \u2018HEADER_CZ_REFINE_ITEM_REQUEST\u2019 was not declared in this scope
parseable_packet( HEADER_CZ_REFINE_ITEM_REQUEST, sizeof( struct PACKET_CZ_REFINE_ITEM_REQUEST ), clif_parse_refineui_refine, 0 );
^
clif_packetdb.hpp:8:67: note: in definition of macro \u2018parseable_packet\u2019
#define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
^~~
clif_packetdb.hpp:2349:20: note: suggested alternative: \u2018PC_PERM_RECEIVE_REQUESTS\u2019
parseable_packet( HEADER_CZ_REFINE_ITEM_REQUEST, sizeof( struct PACKET_CZ_REFINE_ITEM_REQUEST ), clif_parse_refineui_refine, 0 );
^
clif_packetdb.hpp:8:67: note: in definition of macro \u2018parseable_packet\u2019
#define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
^~~
clif_packetdb.hpp:2349:96: error: invalid application of \u2018sizeof\u2019 to incomplete type \u2018packetdb_readdb()::PACKET_CZ_REFINE_ITEM_REQUEST\u2019
parseable_packet( HEADER_CZ_REFINE_ITEM_REQUEST, sizeof( struct PACKET_CZ_REFINE_ITEM_REQUEST ), clif_parse_refineui_refine, 0 );
^
clif_packetdb.hpp:8:71: note: in definition of macro \u2018parseable_packet\u2019
#define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
^~~~~~
clif_packetdb.hpp:2350:20: error: \u2018HEADER_CZ_REFINE_WINDOW_CLOSE\u2019 was not declared in this scope
parseable_packet( HEADER_CZ_REFINE_WINDOW_CLOSE, sizeof( struct PACKET_CZ_REFINE_WINDOW_CLOSE ), clif_parse_refineui_close, 0 );
^
clif_packetdb.hpp:8:67: note: in definition of macro \u2018parseable_packet\u2019
#define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
^~~
clif_packetdb.hpp:2350:96: error: invalid application of \u2018sizeof\u2019 to incomplete type \u2018packetdb_readdb()::PACKET_CZ_REFINE_WINDOW_CLOSE\u2019
parseable_packet( HEADER_CZ_REFINE_WINDOW_CLOSE, sizeof( struct PACKET_CZ_REFINE_WINDOW_CLOSE ), clif_parse_refineui_close, 0 );
^
clif_packetdb.hpp:8:71: note: in definition of macro \u2018parseable_packet\u2019
#define parseable_packet(cmd,length,func,...) packetdb_addpacket(cmd,length,func,__VA_ARGS__,0)
^~~~~~
make[1]: *** [Makefile:84: obj/clif.o] Error 1
make[1]: Leaving directory '/root/trunk/src/map'
make: *** [Makefile:50: map] Error 2 -
Hi, i want a script for newbies when they type @guide as command, the command will display at bottom helpful tips. TIA!~
-
10 minutes ago, sader1992 said:
the script gives a reward only for the level you type , if you don't have a line with the level and the job , it wont add a reward to it
I see... but is it possible to get the reward between level 10-19 once?
10 minutes ago, sader1992 said:if you want to add the reward for every level in the class after level 10 , you can do this
freeloop(1); for(.@i=10;.@i<MAX_LEVEL;.@i++){ LevelUpReward(1,.@i,0,0,11501,20,11502,10,12211,1); }
Thanks for this
-
6 minutes ago, sader1992 said:
what do you mean by skip ?
the script work when you level up with a normal why , you have level up by killing monsters or quests
also if you have +80% Weight , the reward would be in @LevelUpReward
i mean when i set it to get reward at level 10 i get the reward. but if i skip level 10 i don't get the level reward.
LevelUpReward(1,10,0,0,11501,20,11502,10,12211,1);
-
Hi, @sader1992 i am using your script LvUpRewards.
How can i get reward if i skip a level.LevelUpReward(1,10,0,0,11501,20,11502,10,12211,1);
LevelUpReward(2,10,0,0,0,0,0,0);
i tested on a novice i leveled up to 10 it worked fine, after that i tried resetting it i leveled to 13 skipped past level 10 and i din't get the reward. -
Bump~ Any answers fo this? i'm also lloking for a fix.
-
nvm, found it.
-
-
Can anyone give me the illustration bmp for this card. ty
-
@iraciz Do you have Fixed Orc Hero and Alice Sprites? noticed these mobs don't have sound aswell.
-
any source modification needed for this? or anyone with script to tell the notification cooldown?
-
Idk why but orc hero mvp act doesn't make sound, but other mvps and monsters are working perfectly.
Thanks in Advance!
-
@Foob have you figured this out? was also looking for this fix.
-
Thank you, issue has been fixed.
-
20 hours ago, Chaos92 said:
not the fix im looking for :s the head sprite covers the robe sprite still.
-
5 hours ago, kodkodkub said:
Delete these lines in your 2dlayerdir_f.lub
I also tried this... didn't work.
-
6 hours ago, Gladius said:
I heard about something on Haziel's support discord.
is a correction provided by Hadrias
I think this file will help you with the desired fix: SPREditInfo.zip
i tried this fix still doesn't work...
-
-
33 minutes ago, Freecz said:
oo alam ko yan.
napalitan ko yung iba. yun lang talaga hindi ko mapalitan.
tinry ko cya, tama ka nga. baka nka embed sa client mismo. hinanap ko din sa diff pero wala. Try mo gumamit ng older version ng client.
-
2 minutes ago, Freecz said:
uu kasi yung mga iba like win_login ok na sya sakin na edit ko sya pero yan lang ang hindi ko mahanap.
yung win_service.bmp kuni mo sa data.grf then edit mo after that illagay mo cya sa kung alin mauuna sa data.ini mo.
0=server.grf <---- ito yung mauunang babasahin dito mo cya ilalagay yung win_service.bmp dito lhat ng eedit mo pra lumitaw.
1=rdata.grf
2=data.grf -
1 minute ago, Freecz said:
nabago ko na din sya pero hindi napalitan.
if edit mo cya dpat naka lagay sa server.grf mo or kung alin mauuna sa data.ini
-
13 minutes ago, Freecz said:
mga sir pahingi naman ng tulong kung paano babaguhin ang nasa picture na ito ( hindi yung (Celestial :RO 1) ang tinutukoy ko)
sinubukan ko sya hanapin sa:
texture > À¯ÀúÀÎÅÍÆäÀ̽º > login_interface
pero wala hindi ko sya makita.
kung alam nyo po kung san ito binabago maari po ba na paki turuan ako? maraming salamat mga sir.
data/texture/À¯ÀúÀÎÅÍÆäÀ̽º/log_interface/win_service.bmp
-
12 hours ago, TheDerpySupport said:
As far as I know, that sprite never actually existed for kRO? No matter what server I was on it never showed properly. Those that you see may be custom versions.
@TheDerpySupport idk man i saw a couple of private servers got this sprite. TalonRO, LimitRO, EssenceRO... yeah, maybe it's a custom sprite.
5 hours ago, Freecz said:Change:
[ACCESSORY_IDs.ACCESSORY_CAT_BELL] = "_°í¾çÀ̹æ¿ï",
To:
[ACCESSORY_IDs.ACCESSORY_CAT_BELL] = "CAT_BELL",
if :
ACCESSORY_CAT_BELL = 135,
item_db.txt:
30000,CAT_BELL,CAT BELL,4,1,1,1,0,5,0,1,0xFFFFFFFF,63,2,1,,1,1,135,{},{},{}
@Freecz i am looking for the sprite, not the item script man. thanks anyway.
Error on Potion Trader Script
in Scripting Support
Posted
prontera,138,224,5 script Potion Trader 982,{
set @name$,"[^FF0000"+strnpcinfo(1)+"^000000]";
mes @name$;
mes "I can convert your Siege White Potion to Siege Blue Potion and Siege Blue Potion to Siege White Potion.";
next;
mes "^FF0000Please make sure you have enough item slot for this transaction.^000000";
mes "^FF0000We (GM TEAM) are not responsible of any loss or if you drop the exchange items.^000000";
next;
mes "^0000EE2 Siege White Potion^000000 = ^FF00001 Siege Blue Potion";
mes "^0000EE2 Siege Blue Potion^000000 = ^FF00001 Siege White Potion";
next;
switch(select("^0000EE(Siege White Potion)^000000 to ^FF0000(Siege Blue Potion):^0000EE(Siege Blue Potion)^000000 to ^FF0000(Siege White Potion)")) {
case 1:
next;
mes @name$;
mes "How many "+getitemname(11504)+" do you want?";
input .@item_count ;
if( .@item_count == 0 ) close;
if(countitem(11503) >= 5001){
mes " ";
mes "Your Inventory is full";
mes "Your "+getitemname(11503)+" is more than 5,000 put some in storage";
close;
}
delitem 11503,(.@item_count*2);
getitem 11504,.@item_count;
next;
mes @name$;
mes "There you go! You got your "+.@item_count+"x "+getitemname(11504)+". Hope to see you again!";
close;
case 2:
next;
mes @name$;
mes "How many "+getitemname(11503)+" do you want?";
input .@item_count ;
if( .@item_count == 0 ) close;
if(countitem(11504) >= 5001){
mes " ";
mes "Your Inventory is full";
mes "Your "+getitemname(11504)+" is more than 5,000 put some in storage";
close;
}
delitem 11504,(.@item_count*2);
getitem 11503,.@item_count;
next;
mes @name$;
mes "There you go! You got your "+.@item_count+"x "+getitemname(11503)+". Hope to see you again!";
close;
}
}
I'm having this error on npc whenever i input wrong number of potions. can anyone help me with this.. thank you.