Jump to content
  • 0

[REQUEST] Kafrapoints given when in pvp


Feistz

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   10
  • Joined:  11/10/11
  • Last Seen:  

Hello, can i request a simple script here?

Basically i want a script that gives 1 KafraPoints everytime you kill a player in specific PvP Maps and in dispbottom it says "You have killed <someone> and gained 1 Kafra point"

Thanks! :)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

-	script	Sample	-1,{
OnPCKillEvent:
if( strcharinfo(3) == "mapname" || strcharinfo(3) == "mapname" || strcharinfo(3) == "mapname" || strcharinfo(3) == "mapname" || strcharinfo(3) == "mapname" ){
set #KAFRAPOINTS,#KAFRAPOINTS + 1;
dispbottom "Gained 1 Kafra Points.. Total accumulated Points = "+#KAFRAPOINTS;
}
end;
}

That's the simple less complicated way of doing it.

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:  

try this

-    script    Sample    -1,{
OnPCKillEvent:
if( strcharinfo(3) == "mapname" ){
   set #KAFRAPOINTS,#KAFRAPOINTS + 1;
   dispbottom "Gained 1 Kafra Points.. Total accumulated Points = "+#KAFRAPOINTS;
}
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   10
  • Joined:  11/10/11
  • Last Seen:  

Working! But i could only add 1 Map, how can I add several maps?

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:  

Working! But i could only add 1 Map, how can I add several maps?

- script Sample -1,{
OnPCKillEvent:
setarray .Map$[0],"guild_vs1","guild_vs2","guild_vs3","guild_vs4","guild_vs5";
for( set .@i,0; .@i < getarraysize( .Map$ ); set .@i,.@i + 1 )
if( strcharinfo(3) == .Map$[.@i] ){
 set #KAFRAPOINTS,#KAFRAPOINTS + 1;
 dispbottom "Gained 1 Kafra Points. Total = "+#KAFRAPOINTS;
}
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...