Jump to content
  • 0

PvP Hour Reward


Yaoi

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  06/13/14
  • Last Seen:  

Hi i would like to have a script like this to make a great pvp hour full of users :D
 

1. Only When it is @time 22:00 this script starts
2. When killing another user they recieve a certain coin per every kill [ poring coins 7539]
3. This script only work in certain map [ guild_vs2 ]
4. When it is @time 23:00 the script ends
 
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


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


- script pvp_coin -1,{

OnPCKillEvent:

if ( strcharinfo(3) == "guild_vs2" && getcharid(3) != killedrid && gettime(3) == 22 ) {

getitem 7539,1;

}

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   38
  • Joined:  04/28/13
  • Last Seen:  

-	script	pvpevent	-1,{

OnPCKillEvent:
if (strcharinfo(3) == "guild_vd2" && .$pvpevent == 1) {
getitem 7539, 1;
end;
}

OnClock2200:
set .$pvpevent, 1;

OnClock2300:
set .$pvpevent, 0;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

-	script	pvpevent	-1,{

OnPCKillEvent:
if (strcharinfo(3) == "guild_vd2" && .$pvpevent == 1) {
getitem 7539, 1;
end;
}

OnClock2200:
set .$pvpevent, 1;
end;
OnClock2300:
set .$pvpevent, 0;
end;
}

 

just needs "end"; after OnClockXX Statements.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   38
  • Joined:  04/28/13
  • Last Seen:  

DIdnt tested it, i havent done those scripts for a long time, now im on src.

Anyway

 

-	script	pvp_coin	-1,{

	OnPCKillEvent:
		if ( strcharinfo(3) == "guild_vs2" && getcharid(3) != killedrid && gettime(3) == 22 ) {
			getitem 7539,1;
		}
		end;
		
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  06/13/14
  • Last Seen:  

thank you all very much :D :D 

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