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??!?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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