Jump to content

Custom NPC's


Recommended Posts

Re mages, pws mporw na ftiaksw NPC's ap tin arxi mexri to telos dika mou? gia paradeigma 8elw na ftiaksw ena NPC pou na leei:

 

Buy

 

Patas k na leei:

 

Buy GM Armor

 

Buy GM Weapon

 

K na mporei kapoios apo ekei na agorasei titanium armor k GM weapons me Apiga. Ta exw ola alla dn kserw pws na ftiaksw to NPC. Mporei kanenas na mou eksigisei akrivws ti prepei na kanw sto folder tou server k sti db?

Link to comment
Share on other sites

1)ftia3e ena multisell me ta items p 8es na poulaei p.x.for GM Armor bale 99999 kai gia GM Weapon 99998

2)ftia3e to html kai onomase to p.x.99999 (i opos alliws 8es)

 

<html>

<head>

<body>

<br> Custom NPC

<br>

<edw grapse to keimeno p 8es na leei to NPC>

<br>

<a action="bypass -h npc_%objectId%_Chat 1">Buy</a>

</body>

</html>

 

3)meta ftia3e ena allo html kai onomase to 99999-1(i opos to exeis onomasei alla meta bale -1)

 

<html>

<head>

<body>

<br> Custom NPC

<br>

<edw grapse to keimeno p 8es na leei to NPC>

<br>

<a action="bypass -h npc_%objectId%_multisell 99999">GM Armors</a>

<br>

<a action="bypass -h npc_%objectId%_multisell 99998">GM Weapons</a>

</body>

</html>

Link to comment
Share on other sites

Ekana auta akrivws k to perasa k se db alla mou vgazei to NPC sto game lago k to keimeno pou grafw mou vgazei to misw k pataw sto buy k mou vgazei auta pou eixa grapsei gia ta weapons se aplo keimeno!

Link to comment
Share on other sites

Oxi gt einai para polla apla 8elw na ma8w pws ginetai gia na ftiaxnw polla etsi paromoia NPC's. Alla prepei na ftiaksw k auto. Mporw na ftiaksw NPC's me to html alla to multisell dn to katalavainw! Mporeis na mou peis ti na grapsw sto multisell k sti db? Apla na mou ta eksigiseis. Apla gia na deis ligo ti ennow koita ligo merika paradeigmata:

Weapon Name:                Weapon ID:            Weapon Price:

GM Dual Zariche              9000                      5000 Apiga + 1000 Golden Apiga

 

Armor Name:

Heavy Titanium Armor      90201                    500 Golden Apiga

 

Deikse mou auta pws einai sto multisell k sto html pws na einai to NPC etsi apla gia na katalavw pws ginetai k meta ta ypoloipa mallon 8a kataferw na ta ftiaksw monos m.

Link to comment
Share on other sites

<?xml version='1.0' encoding='utf-8'?>

 

<!-- gm armors -->

 

<list>

 

  <!-- Heavy Titanium Armor -->

  <item id="1">

    <ingredient id="9143" count="500"/>

    <production id="90201" count="1"/>

  </item>

 

</list>

 

<item id="1"> edw sto epomen item p 8a baleis sto idio multisell o ari8mos 8a alla3ei kai 8a paei 2.meta 3 ktlp

<ingredient id="9143" count="500"/> edw bazeis ti xreiazete gia na pareis to item

Ingredient id=to ID tou item p xreiazete (9143 = golden apiga)

Count=to poso p 8a xreiazete to item (p.x.afto ine 500 golden apiga)

 

<production id="90201" count="1"/> edw bazeis to item p 8eleis gia na agorazoun

Production id=to ID tou item p 8a pernoun (p.x.90201 opws m eipes ine heavy titanium armor)

Count=posa item 8a pareis (sthn periptwsh mas posa titanium armor 8a parei.an 8es to bazeis parapanw apo 1)

 

pistebw na se boh8hsa arketa

Link to comment
Share on other sites

k kati allo teleutaio. Pws mporw na metatrepsw to file k na to kanw na anoigei me firefox. Dld na to deixnei san na einai webpage stin o8oni mou prin to anoiksw.

Link to comment
Share on other sites

mporeis na to kaneis kai apo navicat kai apo to game...apo to game 8a breis to id tou npc p 8es na aprei thn opsh kai meta 8a pas sto npc s kai 8a pathseis shift+klik kai pata edit npc.kai ekei p leei "template id" n 8umame kala bale to id tou allou npc p 8es na parei thn opsh meta kane 3ana spawn to npc kai 8a ise etoimos.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock