[QUESTION] Create New MMI

10/18/2016 02:45 TheCab#1
I'am Trying to Create a new MMI for the Exchange_Script

so here's is it I'am done adding some "codes?" on my resource

Defineneuz.h

DefineText.h

TextClient.inc

TextClient.txt.txt

Exchange_Script.txt


Character.inc


So i've done putting it on the character.inc
I i create a new .res and copy it on my client

Then after that i check the npc but there is no other tab for the given MMI *SHOP*

please help me how to create a new MMI
10/18/2016 06:35 Ecrypter#2
if you want other vending type., you need to have new currency., not that like you add
10/18/2016 07:09 TheCab#3
Quote:
Originally Posted by Ecrypter View Post
if you want other vending type., you need to have new currency., not that like you add
so how can i make a new currency?
or what do you mean by new currency? I already added the Exchange system on my source
10/18/2016 12:01 jericho2nd#4
Quote:
Originally Posted by TheCab View Post
so how can i make a new currency?
or what do you mean by new currency? I already added the Exchange system on my source
try to add. addmenu2 to in your source. leech in other source.

then.
MaSa_Tina
{
setting
{
//AddMenu( MMI_TRADE );
AddMenu2( MMI_EXCHANGE_ADV "LOWERARMOR" );


SetVenderType(2);

AddVenderItem4(0, II_ARM_M_CHR_CHRIZARD_HELMET);
AddVenderItem4(0, II_ARM_M_CHR_CHRIZARD_BOOTS);
AddVenderItem4(0, II_ARM_M_CHR_CHRIZARD_GAUNTLET);
AddVenderItem4(0, II_ARM_M_CHR_CHRIZARD_SUIT);
AddVenderItem4(0, II_ARM_M_CHR_DBZ02CAP);
AddVenderItem4(0, II_ARM_M_CHR_DBZ02FOOT);
AddVenderItem4(0, II_ARM_M_CHR_DBZ02HAND);
AddVenderItem4(0, II_ARM_M_CHR_DBZ02UPPER);
AddVenderItem4(0, II_ARM_M_CHR_NYANHAT);
AddVenderItem4(0, II_ARM_M_CHR_NYANFOOT);
AddVenderItem4(0, II_ARM_M_CHR_NYANHAND);
AddVenderItem4(0, II_ARM_M_CHR_NYANUPPER);
AddVenderItem4(0, II_ARM_M_CHR_CONT1HAT);
AddVenderItem4(0, II_ARM_M_CHR_CONT1FOOT);

SetEquip( II_ARM_F_PMAGIC_HAT, II_ARM_F_PMAGIC_UPPER, II_ARM_F_PMAGIC_HAND, II_ARM_F_PMAGIC_FOOT );
SetImage
(
IDS_CHARACTER_INC_000140
);
//m_szDialog= "MaSa_Tina.txt";
}

SetName
(
IDS_CHARACTER_INC_000141
);

AddVendorSlot( 0,
IDS_CHARACTER_INC_000142
);

AddVendorSlot( 1,
IDS_CHARACTER_INC_000143
);
}
10/18/2016 12:17 Nortix#5
Quote:
Originally Posted by jericho2nd View Post
try to add. addmenu2 to in your source. leech in other source.
No :facepalm:.

You are mixing up a few things here.
First you want to add MMI_SHOP, then you have to add items in Exchange_Script for that MMI, but you used MMI_LOWERARMOR.

Second you want to add new items to MMI_TRADE, without including it in the character, with AddVenderItem4. You have to code it in the source first, else it's just ignored.

You're better off using the Exchange_Script for now.
10/18/2016 12:23 jericho2nd#6
[Only registered and activated users can see links. Click Here To Register...]
10/18/2016 12:33 Nortix#7
Quote:
Originally Posted by jericho2nd View Post
[Only registered and activated users can see links. Click Here To Register...]

How does that fix his problem with the exchange :confused::confused::confused::confused::confused: :confused::confused::confused:
10/18/2016 12:40 jericho2nd#8
Quote:
Originally Posted by Nortix View Post
How does that fix his problem with the exchange :confused::confused::confused::confused::confused: :confused::confused::confused:
for the addvendeitem4 :D :D :D :D :D :D :D :D :D :D
10/18/2016 13:23 TheCab#9
@[Only registered and activated users can see links. Click Here To Register...] sory sorry I've copy the wrong code on the character.inc @[Only registered and activated users can see links. Click Here To Register...] I appreciate your help


I dont have a problem with the addvendeitem4 my problem was in the Exchange_Script

my problem is how to add another shop like this.
10/18/2016 14:08 Nortix#10
Defineneuz.h
#define MMI_SHOP 258

DefineText.h
#define TID_MMI_SHOP 7258
10/18/2016 14:22 TheCab#11
Quote:
Originally Posted by Nortix View Post
Defineneuz.h
#define MMI_SHOP 258

DefineText.h
#define TID_MMI_SHOP 7258
what is that? i already define that sir.
10/18/2016 14:25 Ecrypter#12
Quote:
Originally Posted by jericho2nd View Post
try to add. addmenu2 to in your source. leech in other source.

then.
MaSa_Tina
{
setting
{
//AddMenu( MMI_TRADE );
AddMenu2( MMI_EXCHANGE_ADV "LOWERARMOR" );


SetVenderType(2);

AddVenderItem4(0, II_ARM_M_CHR_CHRIZARD_HELMET);
AddVenderItem4(0, II_ARM_M_CHR_CHRIZARD_BOOTS);
AddVenderItem4(0, II_ARM_M_CHR_CHRIZARD_GAUNTLET);
AddVenderItem4(0, II_ARM_M_CHR_CHRIZARD_SUIT);
AddVenderItem4(0, II_ARM_M_CHR_DBZ02CAP);
AddVenderItem4(0, II_ARM_M_CHR_DBZ02FOOT);
AddVenderItem4(0, II_ARM_M_CHR_DBZ02HAND);
AddVenderItem4(0, II_ARM_M_CHR_DBZ02UPPER);
AddVenderItem4(0, II_ARM_M_CHR_NYANHAT);
AddVenderItem4(0, II_ARM_M_CHR_NYANFOOT);
AddVenderItem4(0, II_ARM_M_CHR_NYANHAND);
AddVenderItem4(0, II_ARM_M_CHR_NYANUPPER);
AddVenderItem4(0, II_ARM_M_CHR_CONT1HAT);
AddVenderItem4(0, II_ARM_M_CHR_CONT1FOOT);

SetEquip( II_ARM_F_PMAGIC_HAT, II_ARM_F_PMAGIC_UPPER, II_ARM_F_PMAGIC_HAND, II_ARM_F_PMAGIC_FOOT );
SetImage
(
IDS_CHARACTER_INC_000140
);
//m_szDialog= "MaSa_Tina.txt";
}

SetName
(
IDS_CHARACTER_INC_000141
);

AddVendorSlot( 0,
IDS_CHARACTER_INC_000142
);

AddVendorSlot( 1,
IDS_CHARACTER_INC_000143
);
}
Totally wrong.
Dont you think what you saying.? Your soo funny.
AddVenderItem4 is for new currency.
10/18/2016 14:45 jericho2nd#13
Quote:
Originally Posted by Ecrypter View Post
if you want other vending type., you need to have new currency., not that like you add
?
10/18/2016 15:48 Nortix#14
Quote:
Originally Posted by Ecrypter View Post
Totally wrong.
Dont you think what you saying.? Your soo funny.
AddVenderItem4 is for new currency.
We already figured that out before :rolleyes:


Quote:
Originally Posted by TheCab View Post
what is that? i already define that sir.
sir look at the ids sir. The TID has to be the MMI ID + 7000
10/18/2016 23:57 TheCab#15
Quote:
Originally Posted by Nortix View Post
We already figured that out before :rolleyes:




sir look at the ids sir. The TID has to be the MMI ID + 7000
I already change the TID +7000 but still nothing happens :( I'am losing my hope right now :confused: :confused: :confused: