Jump to content
  • 0

pvp kill points


Blue Jem

Question


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

example in pvp arena point specific map

i killed 2 players i got arenapoint 10point and if i die 5 times i got again arenapoint 10 points

 

-	script	pvppoints	-1,{
OnPCKillEvent:
if ( strcharinfo(3) == "morocc" ){
set arenapoint,arenapoint+5;
dispbottom "You have gained 5 Arena Points. Total is "+arenapoint+" Arena Points.";
end;
}
}

 or how can improve this?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


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

Try this one :

-    script    pvppoints    -1,{
    OnPCKillEvent:
        if ( strcharinfo(3) == "morocc" ) {
            if ( kill >= 2 ) {
                set arenapoint,arenapoint+10;
                dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points.";
                set kill, 0;
            }
            set kill, kill + 1;
        }
        end;
    OnPCDieEvent:
        if ( strcharinfo(3) == "morocc" ) {
            if ( death >= 5 ) {
                set arenapoint,arenapoint+10;
                dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points.";
                set death, 0;
            }
            set death, death + 1;
        }
        end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  



-	script	pvppoints	-1,{
    OnPCKillEvent:
        if ( strcharinfo(3) == "morocc" ) {
            if ( kill >= 2 ) {
                set arenapoint,arenapoint+10;
		specialeffect 88;
                dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points.";
                set kill, 0;
            }
            set kill, kill + 1;
        }
        end;
    OnPCDieEvent:
        if ( strcharinfo(3) == "morocc" ) {
            if ( death >= 5 ) {
                set arenapoint,arenapoint+10;
                dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points.";
                set death, 0;
            }
            set death, death + 1;
        }
        end;
}

the special effect is not working every time i killed 2 player not showing the effect of special effect

Link to comment
Share on other sites


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


- specialeffect 88;

+ specialeffect2 88;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

 

Try this one :

-    script    pvppoints    -1,{
    OnPCKillEvent:
        if ( strcharinfo(3) == "morocc" ) {
            if ( kill >= 2 ) {
                set arenapoint,arenapoint+10;
                dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points.";
                set kill, 0;
            }
            set kill, kill + 1;
        }
        end;
    OnPCDieEvent:
        if ( strcharinfo(3) == "morocc" ) {
            if ( death >= 5 ) {
                set arenapoint,arenapoint+10;
                dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points.";
                set death, 0;
            }
            set death, death + 1;
        }
        end;
}

Well I think it should be:

-    script    pvppoints    -1,{
    OnPCKillEvent:
        if ( strcharinfo(3) == "morocc" ) {
            if ( kill >= 2 ) {
                set arenapoint,arenapoint+10;
                dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points.";
                set kill, 0;
            } else { set kill, kill + 1;}
        }
        end;
    OnPCDieEvent:
        if ( strcharinfo(3) == "morocc" ) {
            if ( death >= 5 ) {
                set arenapoint,arenapoint+10;
                dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points.";
                set death, 0;
            } else { set death, death + 1; }
        }
        end;
}

Otherwise it will be a free point given after clearing the var, so only 1 kill needed because of that 'free point'..  /ok

Link to comment
Share on other sites


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

Load the script, first kill :

  • kill == 0
  • if ( kill >= 2 ) not true
  • kill set to 1

Second kill :

  • kill == 1
  • if ( kill >= 2 ) not true (so there is a mistake)
  • kill set to 2

Third :

  • kill == 2
  • if ( kill >= 2 ) true, give the reward
  • kill set to 0
  • kill set to 1

 

First new kill :

  • kill == 1
  • if ( kill >= 2 ) not true
  • kill set to 2

Second new kill :

  • kill == 2
  • if ( kill >= 2 ) true, reward
  • kill set to 0
  • kill set to 1
-	script	pvppoints	-1,{
OnPCKillEvent:
	if ( strcharinfo(3) == "morocc" ) {
		set kill, kill + 1;
		if ( kill == 2 ) {
			set arenapoint,arenapoint+10;
			dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points.";
			set kill, 0;
		}
	}
	end;
OnPCDieEvent:
	if ( strcharinfo(3) == "morocc" ) {
		set death, death + 1;
		if ( death == 5 ) {
			set arenapoint,arenapoint+10;
			dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points.";
			set death, 0;
		}
	}
	end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

What happen if the player kill 3 players in an instant? For example by using a Comet?

Wouldn't the kill var set to 3, and will mess the script...?

Link to comment
Share on other sites


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

I don't think so..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

-	script	pvppoints	-1,{
    OnPCKillEvent:
        if ( strcharinfo(3) == "morocc" ) {
            if ( kill >= 2 ) {
                set arenapoint,arenapoint+10;
		specialeffect 88;
                dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points.";
                set kill, 0;
            }
            set kill, kill + 1;
        }
        end;
    OnPCDieEvent:
        if ( strcharinfo(3) == "morocc" ) {
            if ( death >= 5 ) {
                set arenapoint,arenapoint+10;
                dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points.";
                set death, 0;
            }
            set death, death + 1;
        }
        end;
}

how can change this

 

2 killed have 10 point

3 killed have 15 point

4 killed have 20 point

5 killed have 25 point

6 killed have 30 point

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