Jump to content

  •  

Photo

how to get the card id in selected item?


  • Please log in to reply
No replies to this topic

#1 markblank05

markblank05

    Member

  • Members
  • PipPip
  • 17 posts

Posted 22 May 2015 - 01:45 PM

hi, im trying to make my first npc and i cant figure out how can i get the card compounded in the item that i select. here is my script

 

prontera,147,171,5	script	Enchanter#	50,{	disable_items;	mes "[Enchanter]";	next;		setarray .@position$[1], "Head", "Body", "Left hand", "Right hand", "Robe", "Shoes", "Accessory 1", "Accessory 2", "Head 2", "Head 3";	set .@menu$, "";		for (set .@i, 1; .@i <= 10; set .@i,.@i + 1)	{		if(getequipisequiped(.@i))		{			set .@menu$, .@menu$ + .@position$[.@i] + " - " + "[" + getequipname(.@i) + "]";			set .@equipped, 1;		}		set .@menu$, .@menu$ + ":";	}		set .@part, select(.@menu$);	set .@equip_id, getequipid(.@part);	set .@equip_r, getequiprefinerycnt(.@part);		mes "Item ID: " + .@equip_id;	mes "Refine level: " + .@equip_r;	mes "Slot 1: ";	mes "Slot 2: ";	mes "Slot 3: ";	mes "Slot 4: ";			close;}

 

how can i get the card id in my selected items? thanks



nvm, solve






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 16 user(s)