Jump to content
  • 0

pvp cash point reward


VladimirCastro

Question


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

- script Sample -1,{

OnInit:

set .Delay,180;

end;

OnPCKillEvent:

if( @Delay < gettimetick(2) ){

set .@Amount,rand(1,4);

set #CASHPOINTS,#CASHPOINTS + .@Amount;

dispbottom "Gained "+.@Amount+" Cash Point. Total = "+#CASHPOINTS+" Cash Points.";

if( .Delay ) set @Delay,gettimetick(2) + .Delay;

}

end;

}

how can i make it for 1 map only?

Edited by tenzie
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


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

Please review your post everytime you post....

i cant read what's ur script....

when i was thinking to help you remove those color tag...

i saw....every words also got it own color tag...so..i..cancelled..

and ask you to repost the content .

anyway....

OnPCKillEvent:
if( strcharinfo(0) == "mapname" ){
...................
...................
}
end;

Link to comment
Share on other sites


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

just modify your current script....what doesnt exist in your script but i show you..then you add it....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

can you pls put it on notepad. because when i try to save it it ust in one line and i dont know how to arrange it

its not working :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

What emistry said is easy.. to do:


- script Sample -1,{
OnInit:
set .Delay,180;
end;
OnPCKillEvent:
if( strcharinfo(3) == "mapname" ) {
if( @Delay < gettimetick(2) ) {
set .@Amount,rand(1,4);
set #CASHPOINTS,#CASHPOINTS + .@Amount;
dispbottom "Gained "+.@Amount+" Cash Point. Total = "+#CASHPOINTS+" Cash Points.";
if( .Delay ) set @Delay,gettimetick(2) + .Delay;
}
}
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

yes its working now. but it doesnt show that im getting ccash point. but when i go to npc it show that i have points

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