Jump to content
  • 0

add prize problem


Budots

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

I think this TEAM FIGHT script has no prize, can someone put some prize to the winning team ? prize will be given per member of the winning team.

Prize: 9524 and 675
Amount: 300 pcs

Per member.


THANKS!!!!!!!!!!!! /kis /kis /kis /kis


BUMP!!!!!!!

Team Fight.txt

Edited by GM Montoy
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  


getitem <item_id>,<amount>;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

something like this?

prontera,147,158,5    script    Team Fight    757,{
mes "Do you want to register for  5 vs 5 Team Fight?";
if( getarraysize( .TeamCount ) ){
for( set .@i,0; .@i < getarraysize( .TeamCount ); set .@i,.@i + 1 )
  mes "[ ^FF0000"+getarraysize( .TeamCount )+"th Team^000000 ] : ^0000FF"+getpartyname( .TeamCount[.@i] )+"^000000";
}
next;
if( select("Register as "+( getarraysize( .TeamCount ) + 1 )+"th Team:Cancel") == 2 ) close;
if( !getcharid(1) || getpartyleader( getcharid(1),2 ) != getcharid(1) ){
mes "You must be a ^0000FFLeader^000000 of a party to register.";
close;
}
deletearray $@partymembercount,getarraysize( $@partymembercount );
deletearray $@partymembercid,getarraysize( $@partymembercid );
getpartymember getcharid(1),1;
if( $@partymembercount != .RequiredMember ){
mes "Your party required total of ^FF0000"+.RequiredMember+"^000000 Members to register.";
close;
}
if( getarraysize( .TeamCount ) >= .TeamLimit ){
mes "Sorry to inform you that there is no more Slot for you to register.";
mes "Maximum of ^FF0000"+.TeamLimit+" Team^000000 each match.";
close;
}
for( set .@i,0; getarraysize( .TeamCount ); set .@i,.@i + 1 )
if( getcharid(1) == .TeamCount[.@i] ){
  mes "Sorry, you cant register twice in a match.";
  close;
}
set .TeamCount[ getarraysize( .TeamCount ) ],getcharid(1);
announce "New Team Registered, "+getarraysize( .TeamCount )+"th Team is "+getpartyname( getcharid(1) )+" .",bc_map;
mes "Your Team has been Registered.";
mes "However, the Registration will be eliminate if there no enough team sign up in the next minutes.";
initnpctimer;
close;
OnTimer60000:
if( getarraysize( .TeamCount ) < .TeamLimit ){
announce "[ Team PK ] : Cancelled due to not enough teams Registered in a given time.",0;
deletearray .TeamCount,getarraysize( .TeamCount );
}else{
announce "[ Team PK ] : Match is going to start now. Prepare yourselves..",0;
for( set .@i,0; getarraysize( .TeamCount ); set .@i,.@i + 1 )
  warpparty .Map$,0,0,.TeamCount[.@i];
}
stopnpctimer;
end;
OnPCDieEvent:
if( strcharinfo(3) == .Map$ ){
announce "[ "+strcharinfo(0)+" ] killed by "+rid2name( killerrid )+" .",bc_map;
warp "SavePoint",0,0;
}
end;
OnInit:
// How many Available team for PK
set .TeamLimit,2;
// How many Party Members required each teams
set .RequiredMember,5;
// What Map will be used
set .Map$,"guild_vs2";
// Set Prize
getitem 9524,300;
getitem 675,300;
end;

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