Jump to content
  • 0

[HELP] A Question About JScript.


Question

Posted

Well , i Wanted To Ask U about how to make the Jscript's code , giving me the skill's effect.. and not casting it..

 

Cause i Dunno How..

 

Check It :

 

The Code Is This :

 


		#Might
		if event == "10":
			st.takeItems(ADENA_ID,0)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4345,3),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

 

And i Want To Make It Just Giving The Effect , And Not Making Me Casting It .. :

 

Any Suggestions / Help?

 

 

*NOTE :

 

It's For IL.

 

 

Thanks In Advance , And Im Looking Forward For Help.

4 answers to this question

Recommended Posts

  • 0
Posted

			#Might
		if event == "10":
			st.takeItems(ADENA_ID,2000)
			SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())
			return "5.htm"		
			st.setState(State.COMPLETED)

 

is for hellbound + and not for c6 :)

  • 0
Posted

try it this way:

#Might

if event == "10":

st.takeItems(ADENA_ID,0)

st.getPlayer().getEffects(SkillTable.getInstance().getInfo(4345,3),False,False)

st.getPlayer().restoreHPMP()

return "5.htm"

st.setState(COMPLETED)

 

  • 0
Posted

I Tried It But It's Not Working..

I Mean , It Makes The Player Cast It.

 

Not Giving The Effect

 

Thx For The Help..

 

Anything Else??!?

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
Answer this question...

×   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...