Mindee-BOT

Mindee-BOT Community => Scripting => Request => Topic started by: sekseit on October 18, 2020, 03:11:15 PM

Title: 139 spell quest- 50 mobs to kill script
Post by: sekseit 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 :)

(https://ibb.co/DMMwKTF)



Thank you so much for your help and time :)
Title: Re: 139 spell quest- 50 mobs to kill script
Post by: MikeOwh on October 18, 2020, 04:03:46 PM

Hi,
I'll help you this afternoon
Title: Re: 139 spell quest- 50 mobs to kill script
Post by: sekseit on October 18, 2020, 05:17:46 PM
Then here u go, I attache all waypoint file.
Title: Re: 139 spell quest- 50 mobs to kill script
Post by: MikeOwh 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 #
(https://i.ibb.co/LkBBXLW/1.png) (https://ibb.co/Vjbbc7Z)




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

(https://i.ibb.co/dpXTZLn/1.png) (https://ibb.co/2MR9JsX)


(https://i.ibb.co/YPnRr01/1.png) (https://ibb.co/hLQ7qY4)




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


(https://i.ibb.co/VH2v8SL/1.png) (https://ibb.co/B4qgRZf)