Hello cheaters, Well, I'm implementing my Capture the Flag (CTF) event, I want to put it on when a player picks up a flag and delivers the weapon he was equipped to return without needing to do it himself.
can you give me examples how can i do this? because I tried creating an array but it didn't work
if(_flags.keySet().contains(npc)){if(getState()!=EventState.RUNNING)returntrue;if(_flags.get(npc)== getTeam(player)&& _flagWielders.values().contains(player)){
player.destroyItemByItemId("Event flag.",6718,1, null,false);
player.broadcastUserInfo();
announce(player.getName()+" has scored for "+_flags.get(npc).getName()+"!",false);
increaseScore(player,1);for(Npc flag : _flagWielders.keySet()){if(_flagWielders.get(flag)== player){
_removeFlags = flag;break;}}
_flagWielders.remove(_removeFlags);returntrue;}if(_flags.get(npc)!= getTeam(player)&&!_flagWielders.keySet().contains(npc)){ItemInstance flag = player.addItem("Event flag.",6718,1, null,false);
player.useEquippableItem(flag,true);
player.broadcastUserInfo();
announce(player.getName()+" has got the "+_flags.get(npc).getName()+" flag!",false);
player.broadcastPacket(newSocialAction(player,16));
_flagWielders.put(npc, player);returntrue;}}
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I present to your attention two options for the Hellbound location map
details in the archive
if you have larger effect files, you do not need to replace them
download
updates can be made behind the scenes, so if you catch a crit, post on the forum or download the archive, it may have already been fixed
additionally you can download
all la2 music from the latest version of the game 2025 download
the entire La2 ambisound from the latest version of the game 2025 download
Question
Williams
Hello cheaters, Well, I'm implementing my Capture the Flag (CTF) event, I want to put it on when a player picks up a flag and delivers the weapon he was equipped to return without needing to do it himself.
can you give me examples how can i do this? because I tried creating an array but it didn't work
0 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.
Note: Your post will require moderator approval before it will be visible.