Jump to content
  • 0

Chat room in invisble npc


edumander1

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.03
  • Content Count:  12
  • Reputation:   0
  • Joined:  09/04/23
  • Last Seen:  

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

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  132
  • Reputation:   53
  • Joined:  06/02/12
  • Last Seen:  

Hi! CLEAR_NPC works, but it will put a "npc click bubble" inside the portal which can be annoying.
I recommend using signboardlist:

JGaDMwD.png

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you can also try with HIDDEN_WARP_NPC

Link to comment
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.   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.

×
×
  • Create New...