Jump to content
  • 0

Question

Posted (edited)

hye i am using a super old script that was created by @AnnieRuru , the problem i had so far was when i input a custom item as  reward the npc said invalid item ID, could someone help me on fixing this?

and yes i knew about @Emistry mission board but there are some bugs and confused  on how to setup it, but still can someone help me on the issue state above?

Click Here To View Script

Edited by Dolphin86

4 answers to this question

Recommended Posts

  • 0
Posted
	mes "Input item ID";
	next;
	input .@tmp, 0, 32767;
	mes "["+ strnpcinfo(1) +"]";
	if ( getitemname(.@tmp) == "null" ) {
		mes "Invalid item ID";
	next;
	break;

Find this line and edit 32767 as I think it covers the maximum IDs it holds. I suppose you're using Item IDs more than 32767.

input .@tmp, 0, 32767;


 

  • Upvote 1
  • 0
Posted
10 minutes ago, Weistony said:
	mes "Input item ID";
	next;
	input .@tmp, 0, 32767;
	mes "["+ strnpcinfo(1) +"]";
	if ( getitemname(.@tmp) == "null" ) {
		mes "Invalid item ID";
	next;
	break;

Find this line and edit 32767 as I think it covers the maximum IDs it holds. I suppose you're using Item IDs more than 32767.

input .@tmp, 0, 32767;


 

well my custom id did start from 40000 and ends at 50000

  • 0
Posted (edited)

still the same i have change it to 60000

						mes "Input item ID";
										next;
										input .@tmp, 0, 60000;
										mes "["+ strnpcinfo(1) +"]";
										if ( getitemname(.@tmp) == "null" ) {
											mes "Invalid item ID";
											next;
											break;
										}

 

Edited by Dolphin86
  • 0
Posted
3 hours ago, Weistony said:
	mes "Input item ID";
	next;
	input .@tmp, 0, 32767;
	mes "["+ strnpcinfo(1) +"]";
	if ( getitemname(.@tmp) == "null" ) {
		mes "Invalid item ID";
	next;
	break;

Find this line and edit 32767 as I think it covers the maximum IDs it holds. I suppose you're using Item IDs more than 32767.

input .@tmp, 0, 32767;


 

nvm it works now, i did check the entire script, there was 2 part of that section, works fine now. thank you soo much

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...