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;}}
In my opinion, finding the right ERP system can be a game-changer for businesses in Pakistan. It's all about identifying the system that best suits your organization's needs and budget
It's great to see discussions around the best ERP solutions tailored to the Pakistani market. From globally recognized platforms to locally developed systems, there's a wide range of options to explore.
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
Link to comment
Share on other sites
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.