Custom Cardscript Job-Declaration

Jenox

New member
Messages
11
Points
0
Hey guys,

sadly me again.
default_biggrin.png


Got some problems at the job-declaration on a autospell script, I want that the card let the user autocast sharpshooting lvl 5 if he is a Hunter/Sniper, it shouldn't work as a clown/gypsy.

Script looks like this:

Code:
{ if(BaseClass==Job_Hunter) {bonus3 bAutoSpell,SN_SHARPSHOOTING,5,50;} }
 
Right now it's checking for BaseClass. That will always return a 1-1 Class unless they have not become any of those classes. In which case it returns Job_Novice.

BaseClass - The character's 1-1 'normal' job, regardless of Upper value. For example, this will return Job_Acolyte for Acolyte, Priest/Monk, High Priest/Champion, and Arch Bishop/Sura. If the character has not reached a 1-1 class, it will return Job_Novice.

You'll need to check for each class using Class.

{ if(Class==Job_Hunter || Class==Job_Sniper) {bonus3 bAutoSpell,SN_SHARPSHOOTING,5,50;} }
(Can't remember if you can do this with Upper or not).

 
Back
Top