Username: Password:

Author Topic: 139 spell quest- 50 mobs to kill script  (Read 52 times)

Offline sekseit

  • Bug
  • *
  • Posts: 4
  • Cookies 0
  • I love Mindee-BOT!
    • View Profile
139 spell quest- 50 mobs to kill script
« on: October 18, 2020, 03:11:15 PM »
Hello,

I created script for 50 mobs in 139 spell quest, but when I activate script there are lots of mistakes. For now I see only one error, but i can`t solve it on my own so I can`t see the next error and I suppose there are more of them.  [badumtss]

I will attache screenshoots of that errors and i will also attache script as text saved in notepad++ (because there we can see number of line where the mistake is).

I would be greatful for help, maybe Mindee od DemonLord, because u are proffesionals with scripts and I`m still begginer,
but I`d love to understand my mistakes :)





Thank you so much for your help and time :)
« Last Edit: October 18, 2020, 03:15:04 PM by sekseit »



Offline DemonLord

  • Administrator
  • Wolf
  • *****
  • Posts: 110
  • Cookies 10001
    • View Profile
Re: 139 spell quest- 50 mobs to kill script
« Reply #1 on: October 18, 2020, 04:03:46 PM »

Hi,
I'll help you this afternoon

Offline sekseit

  • Bug
  • *
  • Posts: 4
  • Cookies 0
  • I love Mindee-BOT!
    • View Profile
Re: 139 spell quest- 50 mobs to kill script
« Reply #2 on: October 18, 2020, 05:17:46 PM »
Then here u go, I attache all waypoint file.

Offline DemonLord

  • Administrator
  • Wolf
  • *****
  • Posts: 110
  • Cookies 10001
    • View Profile
Re: 139 spell quest- 50 mobs to kill script
« Reply #3 on: October 18, 2020, 05:59:04 PM »
I can't tell you if it works or not, I can just tell you what's wrong according to the python language.



You cannot comment with //, you must use #





When you define a function you cannot start with "elif", use "if" and later "if" or "elif"









In texts with apostrophes you must use \ before the apostrophes, for example:
script.StatusMessage('I killed 50 gorgons. I\'ll go take the reward')   


« Last Edit: October 18, 2020, 06:02:17 PM by DemonLord »