Jump to content
  • 0

Chat room in invisble npc


Question

Posted

I'm trying to add a chatroom in an invisible to stay "inside" the portal

I already tried with FAKE_NPC and -1

Quote
1@eom, 101,194,5    script  PvP Room    FAKE_NPC,{
    end;
    OnInit:
    waitingroom "PvP Room", 0;
    end;
}

and this is my full script:

Quote
1@eom, 101,194,0    warp    PvP Room    1,1,pay_dun04,0,0
 
pay_dun04, 60,181,0 warp    random_1    1,1,pay_dun04, 0,0,0
pay_dun04, 202,206,0    warp    random_2    1,1,pay_dun04, 0,0,0
pay_dun04, 191,41,0 warp    random_3    1,1,pay_dun04, 0,0,0
pay_dun04, 40,37,0  warp    random_4    1,1,pay_dun04, 0,0,0
 
-   script  item_get    -1,{
    OnPCKillEvent:
        .@DelayPvP = (5 * 60);  // in seconds
 
        if( getmapflag(strcharinfo(3), mf_pvp)) {
            if (PrevKilled == killedrid && @PVPTIMER > gettimetick(2)) {
               
                dispbottom "You can't win points from same player twice in a roll for " + (@PVPTIMER - gettimetick(2)) + " seconds";
            } else {
                getitem 674, 1;
            }
 
            if (.@DelayPvP) @PVPTIMER = gettimetick(2) + .@DelayPvP;
            PrevKilled = killedrid;
        }  
}
 
-   script  announcer   -1,{
    OnPCLoadMapEvent:
        if(getgmlevel() < 99) {
            announce "[ " + strcharinfo(0) + " ] Entered the PvP Room.", bc_all, 0x76EE00;
        }  
}
 
-   script  sum_mvp -1,{
 
    onInit:
        setarray .mvps, 1038,1039,1046,1059,1086,1087,1112,1115,1147,1150,1157,1159,1190,1251,1252,1272,1312,1373,1389,1418,1492,1511,1583,1623,1630,1646,1647,1648,1649,1650,1651,1658,1685,1688,1708,1719,1734,1751,1768,1779,1785,1832,1871,1874,1885,1917,2022,2068;
    end;
 
    onMinute30:
        atcommand "@killmonster2";
 
        .@randIndex = rand(getarraysize(.mvps));
        .@mvpId = .mvps[.@randIndex]);
 
        monster "pay_dun04", 0, 0, "The Butcher", .@mvpId, 1;
        announce "[ The Butcher ] is inside the PvP Room looking for more victims", bc_all, 0xFF0000;
    end;
}
 
1@eom, 101,194,5    script  PvP Room    FAKE_NPC,{
    end;
    OnInit:
    waitingroom "PvP Room", 0;
    end;
}
 
pay_dun04   mapflag pvp
pay_dun04   mapflag noteleport
pay_dun04   mapflag nowarp
pay_dun04   mapflag nosave
pay_dun04   mapflag nomemo
pay_dun04   mapflag nodrop
pay_dun04   mapflag nobranch
pay_dun04   mapflag loadevent

 

2 answers to this question

Recommended Posts

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