Jump to content

Recommended Posts

Posted

Kalispera se olous, den kserw an iparxei auto to guide..ala den nomizw.Simfona me 1 topic pou ida sto dev help gr ena pedi zitouse na vazei heal kai cancel stin buffer tou epeidh den eixe.Emeis tha doume auto pou i8ele kai auto to pedi ala kai pws na vazoume buff aplo san wind walk gia paradeigma.To kserw poloi apo esas to kseroun ma opos lew einai gia newbies pou arxisan tora ta vimata tous ara xalarouita. Loipon pame na arxisoume? Tha ta pw poli analitika.Episis signomi pou grafw greeklish ala den exw sinithisei na grafw elinika kserete,oxi pos den kserw apla tha me parei ton diplasio xrono :D. Let's Go.

 

Posa eidh tetion koumpion iparxoun?

Sthn pragmatikotita 1,giati kai to cancel kai to heal anikoun se buffs. Emeis tha ta paroume san 3 gia dieukolinsi.

-Cancel buffs

-Heal CP,MP,HP

-Add buff opos wind walk,dance,songs,chant otidipote tetio me pianete ;).

 

Ti tha xriasto gia na valo kati stin buffer mou?

Tipota to idietero, to html arxeio tis buffer fisika oste na emfanizei kai ta buttons.Kai episis ta python arxeia ta opoia tha sas ta eksigisw pio katw

 

KIRIO MEROS.

Bima 1,python arxeia.->Edw vasika vazoume tin ousia ton koumpion.Se kathe buff pernoume periptosi(events) kai sta html leme na patisoun to koumpi pou tous odigei se auti ti periptosi kai ektelei tis entoles pou emeis dinoume.Pame 1 paradeigma:(to python arxeio ine to __init__.py sto JScript sto fakelo tis buffer).

Kodikas gia heal(ine sigkekrimenos)(Eksigounte meta ta /)->

#Heal //aplo comment me liga logia gia na kseroume kai ti kanoume :P den perni meros sto kodika,den ine anageo
		if event == "19": // pernoume mia periptosi se auti ti periptosi pernoume to event 20. kai an auto to event isxuei tote na kanei tis parakatw
			st.takeItems(ADENA_ID,0) // i buffer pernei lefta(adena) apo ton pekti , sti sigkekrimeni periptosi 0
			st.getPlayer().restoreHPMP()  // entoli gia na gemisei hp kai mp an thelete kai cp prosthetete CP
			return "1.htm"	//girnaei sto html arxiko tis buffer sas..den ine 1 panta spania omos ine kati alo.	
			st.setState(COMPLETED) // telionei .

Auto to prosthetoume katw apo 1 alli periptosi dld katw apo kapio st.setState(COMPLETED). Auto itan to heal.

 

Kodikas gia cancel(ine sigkekrimenos)(Eksigounte meta ta /)->

#Cancellation /comment opos parapanw
		if event == "20": /esto oti pali periptosi 20 tote ta parakatw
			st.takeItems(ADENA_ID,0) // na perni adena 0
			SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer()) // den ine kai anageo ine kalo na to valete omos.
			st.getPlayer().stopAllEffects() // entoli gia cancel ola ta buffs
			return "1.htm" // opos panw..girzei stin arxi tou html
			st.setState(State.COMPLETED) // telionei!

Kodikas gia opiodipote buff (Eksigounte meta ta /)->

#Buff name //comment aplo
		if event == "20": // pali esto periptosi 20 as min alaksoume :D
			st.takeItems(ADENA_ID,0) // blabla...to pame na perni apo ton paikti 0 adena i osa thelete eseis
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(SKILL-ID,LEVEL-SKILL),False,False) //Opou skill-id to id tou skil, level-skill to level tou.
			return "1.htm" // edw kalitera na min girnaei pou8ena an thelete delete it auto.		
			st.setState(COMPLETED) // telos.idate? eukolo kai aplo!.

 

Bima2.Eukolo~HTML->

Tora anigoume to html arxio tis buffer .....ekei pou theloume telos panton kai prothetoume ton eksis kodika:

<td><button value="Heal" action="bypass -h Quest 9999_NPCBuffer 20" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td><br>

Opou sto kokino simio vazoume ton arithmo tis periptosis,edw to 20 thimase nomizw :P.Sto prasino vaozume ti tha lei to koumpi, edw esto pernoume to heal..episis sto mple simo vazoume oti name exei to jscript tis buffer mas.

 

Elpizo na voithisa tous kenourgious, kai den nomizw na min ine kai xrisimo.An gia paradeigma lipei apo tin buffer sas to heal kserw gw i kana queen buff kai thelete na i eukeria sas.Ti alo....na prostheso oti otan lew html arxia enow pali sta jscript kai ekei exei html arxia.Auta apo emena kai kali epitixia, See ya elpizw na to

katalavate.

 

Afhste kana comment an to vriskete xrisimo :P

 

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...