Jump to content

Question

Posted (edited)

i want to move the gold room from ordeal_2-1 to ordeal_3-2 but everytime i move it to ordeal_3-2 when the golden peco are killed it spawns at ordeal_2-1 

-    script    trum_v1    -1,{

OnInit: 
    monster "ordeal_2-1",0,0,"Golden Chocobo",1369,1000,"trum_v1::OnKill";
    monster "ordeal_2-1",0,0,"Killer Boss",1949,5,"trum_v1::OnKill";
end;

OnKill:
    
    if(#GoldPoint > 100000){
        warp "prontera",155,184;
    }
    set .Gold_Points, rand(1,3);
    set #GoldPoint, #GoldPoint + .Gold_Points;
    dispbottom "Your Gold Points: "+#GoldPoint+" you get "+ .Gold_Points +" Gold Points";
    monster "ordeal_2-1",0,0,"Golden Chocobo",1369,1,"trum_v1::OnKill";
    
end;

OnClock1432: 
OnClock1433: 
OnClock1000: 
OnClock3000: 
OnClock6000: 
OnClock9000: 
OnClock1200:
OnClock1500:
OnClock1800:
OnClock2100:
OnClock0000:
    killmonster "ordeal_2-1", "All";
    monster "ordeal_2-1",0,0,"Golden Chocobo",1369,1000,"trum_v1::OnKill";
end;
}


//===========================================================
//=== Warpers
//===========================================================
prontera,147,168,3    script    Gold Room#prt::Treasurer    804,{
mes "[^0000FFGol D. Roger^000000]";
mes "Hi "+strcharinfo(0)+", Would you like to go to the Treasure Room? You need 200,000z to go inside.";
next;
switch(select("Yes. Sure!:Change my Gold Points:No")) {
case 1:
    if (Zeny > 199999) {
        mes "[^0000FFGol D. Roger^000000]";
        mes "Alright I will now send you to the Treasure Room, Take Care!.";
        menu "^FF0000I change my mind.",EXIT, "^0000FFYes Lets go!!!",SURE; 
        next;
        SURE:
            set Zeny,Zeny-200000;
            warp "ordeal_2-1",150,149;
            emotion 21;
            announce  strcharinfo(0) +" has Enter in Gold Room!",bc_all,0x00FF00;
        close;
        
        EXIT: 
        end;
    }
    else {
        mes "[^0000FFGol D. Roger^000000]";
        mes "^FF0000Sorry, But you don't have enough zeny.";
    close;
    }
    
case 2:     
    if(!#GoldPoint){
        mes "[^0000FFGol D. Roger^000000]";
        mes "^FF0000You didnt have any Gold Points.";
    }else{
        mes "[^0000FFGol D. Roger^000000]";
        mes "Total Gold Point = ^0000FF"+#GoldPoint+" Points^000000."; 
        
        next;
        mes "[^0000FFGol D. Roger^000000]";
        mes "How many gold you want?";
        mes "Your Gold Point: ^0000FF"+#GoldPoint+" Points^000000.";
        input @GOLD_POINTS;
        
        next;
        mes "[^0000FFGol D. Roger^000000]";
        if(!checkweight(969, @GOLD_POINTS)){
            mes "^FF0000You're Overweight Limit... please put other thing inside your storage.";
            close;
        }
        if(#GoldPoint < @GOLD_POINTS){
            mes "^FF0000You don't have enough Gold Points kid..^000000";
            close;
        }  
        mes "Total Gold Point = ^0000FF"+ (#GoldPoint - @GOLD_POINTS) +" Points^000000.";
        getitem 969, @GOLD_POINTS;
        set #GoldPoint,#GoldPoint - @GOLD_POINTS;
        
    }
    close;
case 3:
    mes "[^0000FFGol D. Roger^000000]";
    mes "Alright, No problem.";
    close;
}

//OnInit:
//    waitingroom "Gold Room",0;
//end;

}

ordeal_2-1,147,149,2    script    Exit Gold Room#1    804,{
    mes "[^0000FFGol D. Roger^000000]";
    mes "Are you sure you want to Exit?";
    menu"Yes!",YES,"Not this time!!!",NVM;
    next;
    YES:
    warp "prontera",155,184;
    end;
    
    NVM:
    end;
}


ordeal_2-1    mapflag    nosave
ordeal_2-1    mapflag    pvp    on
ordeal_2-1    mapflag    nomemo
ordeal_2-1    mapflag    nobranch
ordeal_2-1    mapflag    noexp
ordeal_2-1    mapflag    nodrop
ordeal_2-1    mapflag    nochat
ordeal_2-1    mapflag    novending
//ordeal_2-1    mapflag    nowarp
ordeal_2-1    mapflag    nowarpto
ordeal_2-1    mapflag    noreturn
ordeal_2-1    mapflag    noloot
//ordeal_2-1    mapflag    noskill
ordeal_2-1    mapflag    nocommand    99

 

Edited by Patskie
codebox

5 answers to this question

Recommended Posts

  • 0
Posted
4 minutes ago, Marrahzxc said:

monster "ordeal_2-1",0,0,"Golden Chocobo",1369,1,"trum_v1::OnKill";

Change spawn maps to 3-2

  • Upvote 1
  • 0
Posted (edited)

Read this

OnInit: // When the server start do this below

monster "ordeal_2-1",0,0,"Killer Boss",1949,5,"trum_v1::OnKill";


OnKill: // When the monster killed by player do this event

    if(#GoldPoint > 100000){
        warp "prontera",155,184;
    }
    set .Gold_Points, rand(1,3);
    set #GoldPoint, #GoldPoint + .Gold_Points;
    dispbottom "Your Gold Points: "+#GoldPoint+" you get "+ .Gold_Points +" Gold Points";
    monster "ordeal_2-1",0,0,"Golden Chocobo",1369,1,"trum_v1::OnKill"; // Summon monster on this map when player killed me


//When the time it this Hour do this
 

OnClock1432: 
OnClock1433: 
OnClock1000: 
OnClock3000: 
OnClock6000: 
OnClock9000: 
OnClock1200:
OnClock1500:
OnClock1800:
OnClock2100:
OnClock0000:
    killmonster "ordeal_2-1", "All";
    monster "ordeal_2-1",0,0,"Golden Chocobo",1369,1000,"trum_v1::OnKill";
end;
}

 

I hope you get what i mean
after you change type ingame : @reloadscript

Edited by Poring King
  • Upvote 1

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...