Create new NPC

09/01/2011 12:57 ghostamine#1
hi
today i found way to create new NPC with new lua file in rappelz

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

now i have only 1 probleme
how can i give the new NPC a name ????
09/01/2011 13:17 GeneraL_SchnitzeL#2
how to you make this :D? i need to create a new npc too ^.^
09/01/2011 15:58 Ranma014#3
Editing npcs isnt that easy. If you add them to the database with a specific id you can adjust names etc inside the db, but the client will only look up the id of that npc inside its own database and display what is stored there, so no name/appearance changing without client modding.

to add new npc:
look through the lua files for already present npcs, you can change already present npcs inside the npcresource to call your own merchant script.
I released an item list with new merchants, you can look through those files to understand how to add your own npc and shops.
09/02/2011 20:04 M>M#4
I tried you way by seeing the .lua npcs files but i didn't understand
any thin I hope one of you guys to help me to understand it plz byany way

by photo totu ^_^ if not video
10/11/2011 21:14 ByeByeRappelz#5
I myself am still lost. i just wanna add a skill cards shops to my server for each class.
02/03/2012 07:32 rpz#6
same problem here :(
02/03/2012 08:05 gavsta#7
Thats how you make an NPC

Changing the name is in the Client.

Code:
 function NPC_Card_shop_contact()
-- new shop
dlg_title( "All Cards" )
dlg_text( "Hello I am here today to sell you cards of each Race Thank you for choosing my server" )
dlg_menu( "Gaia Cards", "open_market( 'NPC_card_shop_gaia' )" )
dlg_menu( "Deva Cards", "open_market( 'NPC_card_shop_deva' )" )
dlg_menu( "Asura Cards", "open_market( 'NPC_Card_shop_Asura')" )
dlg_menu( "Thanks for shopping.", '' )
dlg_show()
end
02/03/2012 12:25 rpz#8
Quote:
Originally Posted by gavsta View Post
Thats how you make an NPC

Changing the name is in the Client.

Code:
 function NPC_Card_shop_contact()
-- new shop
dlg_title( "All Cards" )
dlg_text( "Hello I am here today to sell you cards of each Race Thank you for choosing my server" )
dlg_menu( "Gaia Cards", "open_market( 'NPC_card_shop_gaia' )" )
dlg_menu( "Deva Cards", "open_market( 'NPC_card_shop_deva' )" )
dlg_menu( "Asura Cards", "open_market( 'NPC_Card_shop_Asura')" )
dlg_menu( "Thanks for shopping.", '' )
dlg_show()
end
may you tell us how to change the names?
thank you
02/03/2012 13:14 haxti#9
Quote:
Originally Posted by rpz View Post
may you tell us how to change the names?
thank you
Read again LOL
02/03/2012 22:21 ptifou78#10
You havec to edit string. If you want i can do for you ;) i will pm you :)


I don't give any file ! But if you want i can add text for you ;)
02/04/2012 05:19 SilentBill#11
Misleading.
This is how you repurpose an NPC.
Quote:
Originally Posted by gavsta View Post
Thats how you make an NPC

Changing the name is in the Client.

Code:
 function NPC_Card_shop_contact()
-- new shop
dlg_title( "All Cards" )
dlg_text( "Hello I am here today to sell you cards of each Race Thank you for choosing my server" )
dlg_menu( "Gaia Cards", "open_market( 'NPC_card_shop_gaia' )" )
dlg_menu( "Deva Cards", "open_market( 'NPC_card_shop_deva' )" )
dlg_menu( "Asura Cards", "open_market( 'NPC_Card_shop_Asura')" )
dlg_menu( "Thanks for shopping.", '' )
dlg_show()
end
02/04/2012 05:40 gavsta#12
Quote:
Originally Posted by SilentBill View Post
Misleading.
This is how you repurpose an NPC.
Quote:
Originally Posted by GeneraL_SchnitzeL View Post
how to you make this :D? i need to create a new npc too ^.^
Quote:
Originally Posted by M>M View Post
I tried you way by seeing the .lua npcs files but i didn't understand
any thin I hope one of you guys to help me to understand it plz byany way

by photo totu ^_^ if not video
Quote:
Originally Posted by ByeByeRappelz View Post
I myself am still lost. i just wanna add a skill cards shops to my server for each class.

How about you read before you post Silent?
02/04/2012 17:40 SilentBill#13
I did.
Quote:
Originally Posted by gavsta View Post
Thats how you make an NPC
I don't know how you could misread that. I don't give a flying *uck what the others said, you said
Quote:
Originally Posted by gavsta View Post
Thats how you make an NPC
And no, that is not how you make an NPC. That's how you repurpose an NPC.
Get it now? Or do I need to be clearer?