Gatman Posted August 23, 2007 Share Posted August 23, 2007 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 More sharing options...
B0TILIAS Posted August 23, 2007 Share Posted August 23, 2007 an kaneis ena search pisteyw na vreis kati :) Link to comment Share on other sites More sharing options...
Flare Posted August 23, 2007 Share Posted August 23, 2007 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 More sharing options...
Gatman Posted August 25, 2007 Author Share Posted August 25, 2007 ok ty! tora omws in game ti ID 8a exei to npc auto? pou grafw tin ID tou? Link to comment Share on other sites More sharing options...
kkostas86 Posted August 26, 2007 Share Posted August 26, 2007 prepei na to peraseis kai stin SQL. vres ena etoimo npc kai antigrapse ta xaraktiristika tou . alakse to id tou bebea. nomizo oti tha to peraseis sta custom_npc opote vres ena etoimo eki Link to comment Share on other sites More sharing options...
Flare Posted August 26, 2007 Share Posted August 26, 2007 ton ari8mo p ebales sto html (egw s eipa gia paradeigma 99999) 8a ine to ID tou NPC...to html balto sto data/html/merchant kai meta perase to kai sto db kai ise ok....sto game kaneis //spawn 99999 :) Link to comment Share on other sites More sharing options...
Gatman Posted August 26, 2007 Author Share Posted August 26, 2007 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 More sharing options...
Flare Posted August 26, 2007 Share Posted August 26, 2007 dwse m ta ID twn GM Armor kai twn GM Weapon kai ti times(prices) gia na ta paroun kai 8a sto ftia3w egw Link to comment Share on other sites More sharing options...
Gatman Posted August 27, 2007 Author Share Posted August 27, 2007 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 More sharing options...
Flare Posted August 27, 2007 Share Posted August 27, 2007 <?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 More sharing options...
Gatman Posted August 27, 2007 Author Share Posted August 27, 2007 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 More sharing options...
Flare Posted August 27, 2007 Share Posted August 27, 2007 1)de3i klik 2)anoigma me... 3)diale3e to firefox 4)pata ok Link to comment Share on other sites More sharing options...
Gatman Posted August 27, 2007 Author Share Posted August 27, 2007 nai auto ekana me to merchant k dn mou to anoige opws ola ta npc's dld dn mou to edeixne opws 8a to deixnei mesa sto server. Link to comment Share on other sites More sharing options...
Gatman Posted August 27, 2007 Author Share Posted August 27, 2007 Kala ok vrika tropo, kati teleutaio, pws ginetai na allaksw tin opsi tou NPC? gt mou to vgazei lago! Link to comment Share on other sites More sharing options...
Flare Posted August 27, 2007 Share Posted August 27, 2007 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 More sharing options...
Recommended Posts