3 registered members (Ayumi, Akow, AndrewAMD),
1,505
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: The complete RPG Inventory + Tutorial
[Re: NeoNeper]
#313644
03/02/10 17:37
03/02/10 17:37
|
Joined: Nov 2007
Posts: 318 Brasil, Paraná
NeoNeper
Senior Member
|
Senior Member
Joined: Nov 2007
Posts: 318
Brasil, Paraná
|
oooooooohh my goooodddd.. its work its workkk ... OOo i go dead rsrrsrsrr.... Tnkx my brother..
::another one doubts:: I created an item dynamically. it uses a model of armor in the world 3D and When i click in this model it goes to order the following command. "inv_float_item(plate_armor)" to order a floating item for the hand.
however plate_armor it must dynamically be informed and not manually. how I would make this?
Please! Use easy words to be translated. because my English is not very good! Grateful. _______________________________________________________
|
|
|
Re: The complete RPG Inventory + Tutorial
[Re: NeoNeper]
#313754
03/03/10 12:49
03/03/10 12:49
|
Joined: Nov 2007
Posts: 318 Brasil, Paraná
NeoNeper
Senior Member
|
Senior Member
Joined: Nov 2007
Posts: 318
Brasil, Paraná
|
or the best form is to use many ifs? Ex:
if(str_cmp(my.string1,"plate_armor")){ inv_float_item(plate_armor); }
if(str_cmp(my.string1,"plate_shield")){ inv_float_item(plate_shield); } ...
The problem to make this it is that I go to have a function obstructed of ifs. if for each item imagines one
Please! Use easy words to be translated. because my English is not very good! Grateful. _______________________________________________________
|
|
|
Re: The complete RPG Inventory + Tutorial
[Re: FBL]
#313811
03/03/10 18:26
03/03/10 18:26
|
Joined: Nov 2007
Posts: 318 Brasil, Paraná
NeoNeper
Senior Member
|
Senior Member
Joined: Nov 2007
Posts: 318
Brasil, Paraná
|
Oooo yesss.. sory sory my stupid ask. Already I obtained to make...now I learned to use sys_malloc ().. very tnnx brother... I made the following one.
1° I used sys_malloc to create plus an item in the memory. 2° I copied the same values of the item that was played outside of the bag 3° and used the copied values to create the new item.
now not necessary more to use "ifs".. Tnkx very much... the syntax is many util for meee... now understand the function sys_alloc() (^.^) last more.
Please! Use easy words to be translated. because my English is not very good! Grateful. _______________________________________________________
|
|
|
Re: The complete RPG Inventory + Tutorial
[Re: marianschuth]
#336150
08/01/10 22:10
08/01/10 22:10
|
Joined: Mar 2009
Posts: 146 USA
paracharlie
Member
|
Member
Joined: Mar 2009
Posts: 146
USA
|
Does anyone have a working example of this inventory system they would like to share with me? If so let me know, I'm getting to the point where I'm about to hire someone to make it for me.
Has to be *.c
Last edited by paracharlie; 08/01/10 22:11.
A8 Commercial
|
|
|
|