Feistz Posted December 27, 2011 Share Posted December 27, 2011 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! Quote Link to comment Share on other sites More sharing options...
Arcenciel Posted December 27, 2011 Share Posted December 27, 2011 - 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. Quote Link to comment Share on other sites More sharing options...
Emistry Posted December 27, 2011 Share Posted December 27, 2011 try this - script Sample -1,{ OnPCKillEvent: if( strcharinfo(3) == "mapname" ){ set #KAFRAPOINTS,#KAFRAPOINTS + 1; dispbottom "Gained 1 Kafra Points.. Total accumulated Points = "+#KAFRAPOINTS; } end; } Quote Link to comment Share on other sites More sharing options...
Feistz Posted December 27, 2011 Author Share Posted December 27, 2011 Working! But i could only add 1 Map, how can I add several maps? Quote Link to comment Share on other sites More sharing options...
Emistry Posted December 27, 2011 Share Posted December 27, 2011 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 [email protected],0; [email protected] < getarraysize( .Map$ ); set [email protected],[email protected] + 1 ) if( strcharinfo(3) == .Map$[[email protected]] ){ set #KAFRAPOINTS,#KAFRAPOINTS + 1; dispbottom "Gained 1 Kafra Points. Total = "+#KAFRAPOINTS; } end; } Quote Link to comment Share on other sites More sharing options...
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