Jump to content
  • 0
Sign in to follow this  
kerbiii

help on my npc pls

Question

/help

 

 

  Reveal hidden contents
Edited by kerbiii

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Execute this on your database :

CREATE TABLE IF NOT EXISTS `ragnarok`.`item_command` (	`char_name` VARCHAR(30) NOT NULL DEFAULT '',	 `won_id` VARCHAR(50) NOT NULL DEFAULT '',	`nameid` INT(11) NOT NULL DEFAULT '0',	`amount` INT(11) NOT NULL DEFAULT '0',	`date` DATE NOT NULL) ENGINE=MyISAM;

Share this post


Link to post
Share on other sites
  • 0
  On 11/20/2013 at 8:24 AM, Patskie said:

 

Execute this on your database :

CREATE TABLE IF NOT EXISTS `ragnarok`.`item_command` (	`char_name` VARCHAR(30) NOT NULL DEFAULT '',	 `won_id` VARCHAR(50) NOT NULL DEFAULT '',	`nameid` INT(11) NOT NULL DEFAULT '0',	`amount` INT(11) NOT NULL DEFAULT '0',	`date` DATE NOT NULL) ENGINE=MyISAM;

excuted it properly but still nothing appears on my npc it gives me a blank menu and not asking for input ID and input ammount i think i miss something on my script but i cant find it,  and when i check the logs i get stuck

Edited by kerbiii

Share this post


Link to post
Share on other sites
  • 0
  On 11/20/2013 at 2:15 PM, sevenzz23 said:

are you sure it was executed properly? because your server can't read it in your sql. please re-check..

yes it was now, but i think my script is wrong can you take a look at it?

Share this post


Link to post
Share on other sites
  • 0

You are missing some parts.

 

 

Try to change this:

because .@rewardItemGM[1] has no value thats why your menu is empty..

same with .@rewardamItemGM[1].

 

setarray .@rewardItemGM[1],.@itemid; //Item IDssetarray .@rewardamItemGM[1],.@itemcount; //Item Amounts

 

to this:

 

setarray .@rewardItemGM[1],501,502,503; //Item IDssetarray .@rewardamItemGM[1],1,2,3; //Item Amounts
Edited by quesoph

Share this post


Link to post
Share on other sites
  • 0
  On 11/20/2013 at 3:11 PM, quesoph said:

 

You are missing some parts.

 

 

Try to change this:

because .@rewardItemGM[1] has no value thats why your menu is empty..

same with .@rewardamItemGM[1].

 

setarray .@rewardItemGM[1],.@itemid; //Item IDssetarray .@rewardamItemGM[1],.@itemcount; //Item Amounts

 

to this:

 

setarray .@rewardItemGM[1],501,502,503; //Item IDssetarray .@rewardamItemGM[1],1,2,3; //Item Amounts

yes it was that before but i try to change it to input ID and input ammount instead of fixed prize i want my event gm to choose any item they want

Share this post


Link to post
Share on other sites

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.   Restore formatting

  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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.