[Help][Question]Format for vendor.

Newbie Spellweaver
Joined
Dec 28, 2009
Messages
30
Reaction score
22
Code:
MaFl_Martinyc
{
	setting
	{
		AddMenu( MMI_DIALOG );
		AddMenu ( MMI_NPC_BUFF );
		//		( SKILL ID, 스킬레벨, 가능한 플레이어 최소, 최대 레벨, 지속시간(ms) )
		SetBuffSkill( SI_ASS_CHEER_QUICKSTEP,	20, 1, 240, 86400000 );
		SetBuffSkill( SI_ASS_CHEER_HASTE, 	20, 1, 240, 86400000 );
		SetBuffSkill( SI_ASS_CHEER_CATSREFLEX,	20, 1, 240, 86400000 );
		SetBuffSkill( SI_ASS_CHEER_CANNONBALL,	20, 1, 240, 86400000 );
		SetBuffSkill( SI_ASS_CHEER_MENTALSIGN,	20, 1, 240, 86400000 );
		SetBuffSkill( SI_ASS_CHEER_HEAPUP, 	20, 1, 240, 86400000 );
		SetBuffSkill( SI_ASS_CHEER_BEEFUP,	20, 1, 240, 86400000 );
		SetBuffSkill( SI_ASS_CHEER_ACCURACY,	20, 1, 240, 86400000 );
		SetBuffSkill( SI_RIN_SUP_SPIRITUREFORTUNE,	10, 1, 240, 86400000 );
		SetBuffSkill( SI_RIN_SUP_PROTECT,	10, 1, 240, 86400000 );
		SetBuffSkill( SI_RIN_SUP_GEBURAHTIPHRETH,	10, 1, 240, 86400000 );
        AddMenu( MMI_TRADE ));		
		AddVendorItem( 0, IK3_SUIT, 1, 15, 27, 25 );
		AddVendorItem( 0, IK3_HELMET, 1, 15, 27, 25 );
		AddVendorItem( 0, IK3_GAUNTLET, 1, 15, 27, 25 );
		AddVendorItem( 0, IK3_BOOTS, 1, 15, 27, 25 );
		AddVendorItem( 1, IK3_SUIT, 3, 15, 27, 25 );
		AddVendorItem( 1, IK3_HELMET, 3, 15, 27, 25 );
		AddVendorItem( 1, IK3_GAUNTLET, 3, 15, 27, 25 );
		AddVendorItem( 1, IK3_BOOTS, 3, 15, 27, 25 );
		AddVendorItem( 2, IK3_SUIT, 2, 15, 27, 25 );
		AddVendorItem( 2, IK3_HELMET, 2, 15, 27, 25 );
		AddVendorItem( 2, IK3_GAUNTLET, 2, 15, 27, 25 );
		AddVendorItem( 2, IK3_BOOTS, 2, 15, 27, 25 );
		[b][color=red]AddVendorItem( 3, IK3_ANGELWING, -1, 3400, 200, 1, 1 );[/color][/b]
                            m_nStructure= SRT_SHIELD;
		SetImage
		(
		IDS_CHARACTER_INC_000487
		);
		m_szDialog= "MaFl_Martinyc.txt";
	}
-------------------------------------------------------------
"0" = Page 1

"-1" = all classes can use

"IK3" = Scroll

"_ANGELWING" = which scroll

"3400" = item price

"200" = item rarity

"1" = items level for use

"1" = item can be sold while "=" means item cannot be sold
------------------------------------------------------------------
^^
That should give my vendor an "Angel's Wing" scroll, correct?

I'm not so sure I understand the format correctly....

Either I'm not grapsing the format...or I'm not typing it out correctly....

Some help is very appreciated.
/frustration
 
Did you try it?

Yeah. My world server crashes with the item added like that.

I did some searching (for hours), and found a way to get it so my World Server doesn't crash any more, but, the item(s) do not show up. I saw a comment by a user saying it's in except.h, whatever it is that makes CS items show on NPC's. I'm going to take a look in there and see what I can come up with.

New format where my WS doesn't crash;

AddVendorItem( 3, IK3_SCROLL, -1, 123, 134, 1 );

123 being the start rarity on all my scrolls, 134 being the highest rarity on all my scrolls. The -1 being All Classes can use it, 1 means it's a scroll. So confusing.
 
check error log and u gotta make that item tradeable in propitem.txt.
 
Back