Jump to content
  • 0
Sign in to follow this  
Petey Pablo

how to fix this warning?

Question

script:

prontera,158,190,4	script	Soul Linker	1_M_ORIENT01,{set .@n$,"^0000FF[ Soul Linker NPC ]^000000";set .@time, 600000; // the buff last 5 minutesset @zenycost,1000;mes .@n$;mes "Hello "+strcharinfo(0)+"!";mes "Do you want me to Soul Link you? It cost 1,000z";switch(select("Yes:No")) {case 1:if(Zeny < @zenycost) goto l_nozeny;set Zeny,Zeny - @zenycost;switch ( basejob ) {case Job_Alchemist: set .@spirit, 445; break;case Job_Monk: set .@spirit, 447; break;case Job_Star_Gladiator: set .@spirit, 448; break;case Job_Sage: set .@spirit, 449; break;case Job_Crusader: set .@spirit, 450; break;case Job_SuperNovice: set .@spirit, 451; break;case Job_Knight: set .@spirit, 452; break;case Job_Wizard: set .@spirit, 453; break;case Job_Priest: set .@spirit, 454; break;case Job_Bard: case Job_Dancer: set .@spirit, 455; break;case Job_Rogue: set .@spirit, 456; break;case Job_Assassin: set .@spirit, 457; break;case Job_Blacksmith: set .@spirit, 458; break;case Job_Hunter: set .@spirit, 460; break;case Job_Soul_Linker: set .@spirit, 461; break;default:if ( upper == 1 && baselevel < 70 )set .@spirit, 494;}if ( .@spirit ) {sc_start4 SC_SOULLINK, .@time, 5, .@spirit,0,0;skilleffect .@spirit, 5;}case 2:mes .@n$;mes "Okay,goodbye!";close;}l_nozeny:mes .@n$;mes "You need 1000z for a Soul Link.";close;}hugel.gat,102,142,3	duplicate(Soul Linker)	Soul Linker#01	1_M_ORIENT01 

 

warning:

[Warning]: script_add_str: detected possible use of wrong case in a script. Found 'basejob', probably meant to be 'BaseJob' (in 'npc/custom/alliancero/Soul_Linker_NPC.txt'). If it is a local (.@) variable, and you're absolutely sure you used the correct case, please disragard this message, otherwise please correct your scripts, as this will become fatal in a near future.[Warning]: script_add_str: detected possible use of wrong case in a script. Found 'upper', probably meant to be 'Upper' (in 'npc/custom/alliancero/Soul_Linker_NPC.txt'). If it is a local (.@) variable, and you're absolutely sure you used the correct case, please disragard this message, otherwise please correct your scripts, as this will become fatal in a near future.[Warning]: script_add_str: detected possible use of wrong case in a script. Found 'baselevel', probably meant to be 'BaseLevel' (in 'npc/custom/alliancero/Soul_Linker_NPC.txt'). If it is a local (.@) variable, and you're absolutely sure you used the correct case, please disragard this message, otherwise please correctyour scripts, as this will become fatal in a near future. 

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Try : 

- switch ( basejob ) {+ switch ( BaseJob ) {- if ( upper == 1 && baselevel < 70 )+ if ( Upper == 1 && BaseLevel < 70 )

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.