Jump to content

Recommended Posts

Posted

-###Eftiaksa ena guide gia to pws na ftiaxeis ena shop sto opio vazeis oti item 8eleis gt exo psaksei to forum dn exo dei kati kai me exoun rotisei kapies fores pws na valw ena item p.x sto GM shop pou pira apo edw sto MxC-###

 

 

Genika 8a xriastei(genika :) ):

ena HTML(kata kapion tropo edw einai ta ''logia,ta grammata'' pou vlepete otan kanete click panw tou),ena XML (to opio perilamvanei ta item pou 8a pouliountai otan patas click na agoraseis kai ta item pou 8a xriazontai gia na ta pareis p.x agorazw Spirit Ore xrisimopoiontas adena) kai tin aparetiti douleia pou 8a xriastei gia na ftiaxoume to new shop tin database mas.

 

 

A) Database(Navicat)

1)Pigente sto Table 'npc' kai pigente stin teleftea selida tou table aftou.Katw aristera 8a deite ena stavro pou leei Insert Record.Pathste to

2)twra 8a perasoume ta stoixeia tou NPC.stin proti stili(NPC ID) valte ena ID to opio dn iparxei..(p.x 44444)

3)stin defteri kartela(TemplateID diladi i eksoteriki emfanisi tou NPC) valte ena ID apo ta idi iparxonta..

4)gia na eimaste sigouroi stin triti kartela(ServerSideName) valte 1

5)tetarti kartela (Title) einai o titlos pou 8a exei to NPC mesa sto game..valte oti 8elete..

6)stin kartela class valte NPC.a_trader_Fdarkelf(gia dark elf ama 8elete gia kapio allo kante me pm)

7)oi epomenes 2 karteles collision height kai collision radius einai oi diastaseis tou NPC kata kapion tropo. valte oti na nai pros to paron(ee valte as poume 20 sto ena kai 40 sto allo) kai molis mpeite game 8a deite an dn sas aresoun oi diastaseis

8)oles oi epomenes karteles apo level ews runspd..einai ta statistika tou NPC ..dn mas endiaferoun afta...Shop ftiaxnoume..

9)stis epomenes karteles faction_ID ews absorb level min dinete simasia .afiste ta kena kai telos stin teleftea kartela valte LAST_HIT

 

B) o NPC perastike ston server twra pame na ftiaxoume to keimeno pou 8a exei kai to pou 8a mas parapempei otan clickaroume na agorasoume kati:

1)pernoume ena HTML file apo ena allo shop (data/html/merchant/ekei einai ola ta HTML arxeia gia ola ta shop tou l2)na sas dwsw egw ena paradeigma edw:

 

 

<html>

<body>

<center>

<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>

<center><tr><td><font color="FF40FF">to onoma tou shop sas edw</font></tr></td><br>

</center>

<a action="bypass -h npc_%objectId%_Multisell xxxxx"><font color="8000C0">yyyyy</font>   </a><br>

<br>

<img src="L2UI_CH3.herotower_deco" width=256 height=32><br>

<font color="FF0000">Edw valte as poume to onoma tou server sas sini8os afto vazoun.</font>

</body>

</html>

 

(ekei pou leei xxxxx 8a einai to onoma tou multisell arxeiou pou 8a ftiaksete eseis argotera)

(ekei pou leei yyyyy 8a einai to keimeno pou 8elete na leei diladi afto pou 8a vazete na poulaei... p.x Buy Weapon)

 

afto edw to HTML code pou sas edwsa apothiksefte to me to idio onoma pou einai to ID tou NPC pou valate(an eixate valei 44444 sto navicat onomaste to 44444)

 

C) tora to multisell....parte ena multisell code(data/multisell)....diladi 8a pate se ena multisell pou sas einai axristo as poume ta potion sto grocery store kai 8a kanete delete oti exei mesa kai 8a perasete afto to code gia to paradigma mas(se XML einai grammena ta multisell):

 

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

<list>

  <item id="1">

    <ingredient id="xxxx" count="kkkk" enchant="0"/>

    <production id="yyyy" count="1" enchant="0"/>

  </item>

 

<item id="2">

    <ingredient id="xxxx" count="kkkk" enchant="0"/>

    <production id="yyyy" count="gggg" enchant="0"/>

  </item>

 

<item id="3">

    <ingredient id="xxxx" count="kkkk" enchant="0"/>

    <production id="yyyy" count="gggg" enchant="0"/>

  </item>

 

lipon afto edw einai to multisell gia na sell gia paradigma dragonic bow,arcana mace,forgotten blade(eseis oti 8elete vazete egw paradigma fernw).prosekste an kanete diaforetiko paradigma apo mena(ego ta paradigmata ta ferno gia na katanoisete tin diadikasia kai meta eseis ftiaxte oti shop 8elete) na kitakste afto pou leei item id=''1'',item id=''2'',item id=''3'' einai to posa items 8a poulaei to shop..dld emeis eipame 3 weapon 8a poulaei opote exoume 3 ID..ama eixame 15 items na sell 8a vazate pros ta katw me ari8mitiki seira 1,2,3... klp klp

 

tora na eksigisoume ti einai to to ka8ena apo ta grammata pou evala

to xxxx to yyyy to kkkk kai to gggg dn 8a ta valete eseis..ta evala egw gia na sas eksigiso..lipon to ingedient ID einai afto pou xriazetai gia na pareis to item...as poume gold bar as poume(dld ekei pou exw valei egw to xxxx 8a valete to ID twn gold bar)

to kkkk diladi to count tou ingredient ID einai posa gold bar 8a xriazesai gia na pareis to weapon(as poume 5 gold bar gia to dragonic bow)..production ID einai to item pou 8a agoraseis esi dinontas tis gold bar..(diladi to yyyy einai to ID tou dragonic bow sto paradigma mas) kai to count einai posa dragonic bow 8a pareis...ee logika 1 to afinoun to gggg oloi

 

afou teliosate kante save to XML arxeio kai metonomaste to se ena monadiko ari8mo.....thimithite afton ton ari8mo..as poume 15555

 

D)pigente twra sto HTMl arxeio kai ekei pou leei :

 

<a action="bypass -h npc_%objectId%_Multisell xxxxx"><font color="8000C0">yyyyy</font>   </a><br>

<br>        ekei pou leei xxxxx valte ton ari8mo tou multisell pou valate emeis valame 15555 sto paradigma

 

kante sto save!!!!!

mpeite ston server kante RR kai meta molis ksanampeite kante spawn to NPC : //spawn 44444 (to ID pou valame sto paradigma mas)

 

 

 

-###guyz peite tis gnomes sas kai peite an exw ksexasei tpt giati kapia simeia ta egrapsa me biasini alla eftyxws iparxei to modify button..fysika 8a krathsw to post updated kai 8a to kanw oso to kalitero ginetai kai emfanisiaka kai stis odigies###-

 

 

 

 

                                         [move]Good Luck[/move]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Posted

Oreos Kai Polu Kalo Share....

Sto Telos Tou Post Sou Exeis Afisei Polu Keno Pata Svise To Keno

Pou Exei Minei...

Posted

To guide einai metrio, dld tha mporouses na valeis kai perissoteres fwtos, kai genika na eksigiseis kalutera, na fainetai kalutera sto mati...Telos pantwn mpravo gia tin douleia sou

Posted

entaksei gia photos twra...na bgalw dld ta HTMl kai ta XMl pistevo einai efkolo...an vevea dw pws to zitoun 8a valw..pragmati kapia simeia 8a ta eksigisw kalitera gt ekana biastika kapia simeia an kai to guide dn einai gia entelws newbie admins

  • 3 months later...
  • 5 weeks later...
  • 7 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...