Jump to content
  • 0

Question

Posted

Hello when i put this line inside my script i get error in npc that syntax doesn't exist

	elif st.getPlayer().isHero() == 1 :
		htmltext = "<html><head><body> Sorry, You Have Already Hero Status!</body></html>"

 

(it works fine in another pack)

Anyone knows any alternative ?

3 answers to this question

Recommended Posts

  • 0
Posted

Use java for quests if you use postIL stuff.

 

If you use IL or lower, just open a python quest (datapack/jscript) and see the syntax.

I have gracia epilogue pack and all scripts are done in java language

 

I see that java check it like this: player.getOlympiadManagement().isHero()) but in python i got errors

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