Jump to content
  • 0

Mapserver failed to delete items?


Kurby

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

I'm running an NPC with custom script, and mapserv-sql.bat gets error saying

"Error: script:delitem: failed to delete 500 items <AID=2000000 item_id=1001>."

"Debug: Source <NPC>: Quest Items at crystilia <75,79>

crystilia,75,79,4 script Quest Items 103,{

setarray .@Items[0],7539,5000,1058,500,999,500,721,100;
setarray .@Items2[0],7539,5000,1001,500,732,150;
set .@n$,"[Quest Items]";

mes .@n$;
mes "Greetings traveler, I have a very interesting item for you!";
next;
if(select("Keep Talking:Leave")==2) goto M_Leave;

if(BerzQuest == 1) goto M_Once;

mes .@n$;
mes "Which Item would you like?";
next;
if(select("Cygnus Helmet!:Diamond Dust!:Bye!")==3) goto M_Leave;

mes .@n$;
mes "I believe the item is called a ^0000A0Cygnus Helmet^0000A0. Its effects are +30 All Stats!";
next;
mes .@n$;
mes "I need all of the following items:";
for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2) {
mes " ~ "+.@Items[.@i+1]+"x "+getitemname(.@Items[.@i]);
if (countitem(.@Items[.@i]) < .@Items[.@i+1]) set .@nr,1; }
next;
if(select("I have all of that!:I'll get those ASAP")==2) goto M_Leave;

mes .@n$;
if (.@nr) {
mes "You lie! Get out of here and get those items, you sorry excuse for a rock star.";
close; }
for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2)
delitem .@Items[.@i], .@Items[.@i+1];
getitem 19805,1;
set BerzQuest, 1;
mes "Congratulations! You have all the items. Here is your ^0000A0Cygnus Helmet^0000A0, as promised.";
emotion e_grat;
close;

M_Once:
mes .@n$;
mes "I believe the item is called a ^0000A0Diamond Dust^0000A0. Its effects are +30 All Stats!";
next;
mes .@n$;
mes "I need all of the following items:";
for(set .@i,0; .@i<getarraysize(.@Items2); set .@i,.@i+2) {
mes " ~ "+.@Items2[.@i+1]+"x "+getitemname(.@Items2[.@i]);
if (countitem(.@Items2[.@i]) < .@Item2s[.@i+1]) set .@nr,1; }
next;
if(select("I have all of that!:I'll get those ASAP")==2) goto M_Leave;

mes .@n$;
if (.@nr) {
mes "You lie! Get out of here and get those items, you sorry excuse for a rock star.";
close; }
for(set .@i,0; .@i<getarraysize(.@Items2); set .@i,.@i+2)
delitem .@Items2[.@i], .@Items2[.@i+1];
getitem 19805,1;
set BerzQuest, 0;
mes "Congratulations! You have all the items. Here is your ^0000A0Diamond Dust^0000A0, as promised.";
emotion e_grat;
close;

M_Leave:
mes .@n$;
mes "Such a great item I have right here...";
close;
}

Solved. Can't log onto client though?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...