Jump to content
  • 0

PvP System + ChashP


Kaiz

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   0
  • Joined:  11/29/12
  • Last Seen:  

i found this script in request but i notice that it still missing something, seems to me coz heres the info who request this

by cloud167

map is prontera, and all pvp and gvg maps

player 1 killed player 2

player 1 will gain random cash point from 1-4

player 1 will see in dispbottom how much cashpoint he gained from killing player 2 and will also display how much cashpoint he got overall

player 1 will have a 3minute cooldown before he can gain cashpoints when killing player 2 again

player 1 will have a dispbottom that says the remaining time to gain cashpoints from killing player 2

thank you :D

and the script is given by emistry

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

well i try this on my server yeah its working and in every 3mins you can gain again to that player but the thing is while im testing it i notice that i cant gain cash on other player too

example

P1 kill P2 then P1 will gained cash

then

P1 kill P3 nothing gained

then

P2 kill P1 who kill P2 on the 1st and didnt gain a cash

sorry for my bad explanation even me ikinda cnofuse for explaning it :P

correct me if im wrong for what i see on the script that comeups when i use the script

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

For example, using getd you can make a variable @delay(char_id player killed).

Like this:

getd("@Delay"+.@id)
...
setd ("@Delay"+.@id)
}

But be aware if the killer log out/log in, @delay is reset !

Edit: oups my bad! this is script support... i remove my script.

Edited by capuche
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...