Jump to content
  • 0

Illusion Moonlight MVP summon


Question

Posted

Hello,

I downloaded illusion moonlight script, for the MVP summon part, for some reason, the MVP does not summon after 800 kill, I set to 5 for test, but it does not summon after 5 kill, can anyone take a look script, and fix it? Thanks in advance.

-    script    illusion_mob#moonlight    -1,{
    OnInit:
        monster "pay_d03_i",0,0,"Angry Nine Tail",3759,10,strnpcinfo(0)+"::OnSummonMVP";
        end;
        
    OnSummonMVP:
        monster "pay_d03_i",0,0,"Angry Nine Tail",3759,1,strnpcinfo(0)+"::OnSummonMVP";
        $illusion_mvp += 1;
        if($illusion_mvp == 2){ //= jRO Summons the MVP after 800 kills or so
            mapannounce "pay_d03_i","Angry Moonlight Flower : Who dares bully us again? They're in a lot of trouble.",bc_map;
            monster "pay_d03_i",0,0,"Angry Moonlight Flower",3758,1;
           $illusion_mvp = 0;
        }
        end;

4 answers to this question

Recommended Posts

  • 0
Posted (edited)
2 hours ago, Surefirer said:

Hello,

I downloaded illusion moonlight script, for the MVP summon part, for some reason, the MVP does not summon after 800 kill, I set to 5 for test, but it does not summon after 5 kill, can anyone take a look script, and fix it? Thanks in advance.

-    script    illusion_mob#moonlight    -1,{
    OnInit:
        monster "pay_d03_i",0,0,"Angry Nine Tail",3759,10,strnpcinfo(0)+"::OnSummonMVP";
        end;
        
    OnSummonMVP:
        monster "pay_d03_i",0,0,"Angry Nine Tail",3759,1,strnpcinfo(0)+"::OnSummonMVP";
        $illusion_mvp += 1;
        if($illusion_mvp == 2){ //= jRO Summons the MVP after 800 kills or so
            mapannounce "pay_d03_i","Angry Moonlight Flower : Who dares bully us again? They're in a lot of trouble.",bc_map;
            monster "pay_d03_i",0,0,"Angry Moonlight Flower",3758,1;
           $illusion_mvp = 0;
        }
        end;

apparently, it is using a permanent global variable. Try set it to zero first.

@set  $illusion_mvp 1

or change all :

`$illusion_mvp` to  `$@illusion_mvp` << this method is uncertain because I dunno how the whole script works.

or simply change 

  if($illusion_mvp == 2){ //= jRO Summons the MVP after 800 kills or so

to 

  if($illusion_mvp >= 2){ //= jRO Summons the MVP after 800 kills or so

 

Any of these methods should work.

Edited by Mabuhay
  • 0
Posted
14 minutes ago, Mabuhay said:

apparently, it is using a permanent global variable. Try set it to zero first.


@set  $illusion_mvp 1

or change all :


`$illusion_mvp` to  `$@illusion_mvp` << this method is uncertain because I dunno how the whole script works.

or simply change 


  if($illusion_mvp == 2){ //= jRO Summons the MVP after 800 kills or so

to 


  if($illusion_mvp >= 2){ //= jRO Summons the MVP after 800 kills or so

 

Any of these methods should work.

Thank you for your help. I tried, it works. I have a question, when should I use 

@set  $illusion_mvp 1

Do I have to use everytime I restart sever, or do it's a onetime thing. Sorry, I am new to script, still learning.

and since you set $illusion_mvp 1, I am assuming that 1 means clean the kill number set to 0, but why in the script right after the MVP summoned, then follow by "$illusion_mvp = 0", what's that "0" mean?  Are "@set  $illusion_mvp 1" and "$illusion_mvp=0" does the same job?

  • 0
Posted (edited)
5 minutes ago, Surefirer said:

Thank you for your help. I tried, it works. I have a question, when should I use 


@set  $illusion_mvp 1

Do I have to use everytime I restart sever, or do it's a onetime thing. Sorry, I am new to script, still learning.

and since you set $illusion_mvp 1, I am assuming that 1 means clean the kill number set to 0, but why in the script right after the MVP summoned, then follow by "$illusion_mvp = 0", what's that "0" mean?  Are "@set  $illusion_mvp 1" and "$illusion_mvp=0" does the same job?

Read and learn from scripting bible doc/script_commands.txt

Learn basic Variable. it is straightforward and no need big brain to understand.

PS: it should have been :

@set  $illusion_mvp 0

to set its value to 0, just a bit of typo on my side.

Edited by Mabuhay
  • 0
Posted
24 minutes ago, Mabuhay said:

Read and learn from scripting bible doc/script_commands.txt

Learn basic Variable. it is straightforward and no need big brain to understand.

PS: it should have been :


@set  $illusion_mvp 0

to set its value to 0, just a bit of typo on my side.

ok, thank you for your help.

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...