Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-04-19 11:17:19

goeyfun
Member
From: Mighty Japan
Joined: 2015-02-18
Posts: 667

[Question] Message when someone get infected by zombie or curse potion

it seems like it's not in the "p":
where's it?


Ug3JzgO.png

Offline

#2 2015-04-19 11:24:58

DarkDragon4900
Member
Joined: 2015-03-17
Posts: 251

Re: [Question] Message when someone get infected by zombie or curse potion

Add a case default to your switch (e.Type), Add a MessageBox.Show(e.ToString()); to it and get yourself cursed/zombified. see if anything shows up.

Offline

Wooted by:

#3 2015-04-19 11:25:56, last edited by Zumza (2015-04-19 11:27:14)

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,656

Re: [Question] Message when someone get infected by zombie or curse potion

this.connection.addMessageHandler("effect",function(param1:Message, param2:int, param3:int, param4:Boolean):void
         {
            var _loc5_:Player = null;
            if(param2 == myid)
            {
               player.setEffect(param3,param4);
            }
            else
            {
               _loc5_ = players[param2] as Player;
               if(_loc5_)
               {
                  _loc5_.setEffect(param3,param4);
               }
            }
         });
         this.connection.addMessageHandler("team",function(param1:Message, param2:int, param3:int):void
         {
            var _loc4_:Player = null;
            if(param2 == myid)
            {
               player.team = param3;
               (Global.base.sidechat.names[player.name] as UserlistItem).setTeam(param3);
            }
            else
            {
               _loc4_ = players[param2] as Player;
               if(_loc4_)
               {
                  _loc4_.team = param3;
                  (Global.base.sidechat.names[_loc4_.name] as UserlistItem).setTeam(param3);
               }
            }
         });

If you decompile the client, he will not bite you I promise.
I let you effect and team as a bonus.


Everybody edits, but some edit more than others

Offline

Wooted by:

#4 2015-04-19 11:59:35

goeyfun
Member
From: Mighty Japan
Joined: 2015-02-18
Posts: 667

Re: [Question] Message when someone get infected by zombie or curse potion

Okay //forums.everybodyedits.com/img/smilies/smile Thx for the clue


Ug3JzgO.png

Offline

#5 2015-04-19 12:06:29

DarkDragon4900
Member
Joined: 2015-03-17
Posts: 251

Re: [Question] Message when someone get infected by zombie or curse potion

Oh right, potions were removed.

Offline

DarkDragon49001429441589496384

Board footer

Powered by FluxBB

[ Started around 1732484800.3461 - Generated in 0.034 seconds, 10 queries executed - Memory usage: 1.39 MiB (Peak: 1.49 MiB) ]