Mirage Source
new stuff - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: new stuff (/showthread.php?tid=731)



new stuff - Ramsey - 11-02-2007

i need a tut. on how to make new type of items, spells, npc behavior

do you guys know where i can find one? if not can some1 write a tut for me?


- lucidar - 12-02-2007

Why a tutorial for this?

ClientSide:
Quite simply, just add another constant for the type (EX. item_add_str = 43)
Goto the item editor and add it in with the other constants in the combo box.
adjust the save/load accordingly.

ServerSide:
Re-add the constant for the type of whatever.
Goto the appropiate sub/function and add a good old 'if whatever(n).type = my_new_constant then' do whatever it should do here.

Theres a bunch more, thats the jist of it though.


Just follow an existing type, adding your own code after it.
Use the FIND function in VB if you must.