Phantom Of Rogue-Gon Posted August 13, 2013 Posted August 13, 2013 requsting Party points Cashpoint . 1 party in 1 map when the party kill 1 mob got 20Cashpoints Quote
QQfoolsorellina Posted August 13, 2013 Posted August 13, 2013 (edited) - script test1234 -1,{ OnNPCKillEvent set .@pid,getcharid(1); if(!.@pid)end; setd("."+getcharid(1)+"m$",strcharinfo(3)); addrid(2,0,.@pid); if(getd("."+getcharid(1)+"m$")==strcharinfo(3)) set #CASHPOINTS,#CASHPOINTS+20; setd("."+getcharid(1)+"m$",""); end; } Edited August 13, 2013 by QQfoolsorellina Quote
Phantom Of Rogue-Gon Posted August 13, 2013 Author Posted August 13, 2013 can you explain it to me?? where can put the ID of mob? Quote
QQfoolsorellina Posted August 13, 2013 Posted August 13, 2013 (edited) if(killedrid== mob classID ){ .....} - script test1234 -1,{ OnNPCKillEvent: if(killedrid== mob classID ){ set .@pid,getcharid(1); if(!.@pid)end; setd("."+getcharid(1)+"m$",strcharinfo(3)); addrid(2,0,.@pid); if(getd("."+getcharid(1)+"m$")==strcharinfo(3)) set #CASHPOINTS,#CASHPOINTS+20; setd("."+getcharid(1)+"m$",""); } end; } Edited August 13, 2013 by QQfoolsorellina Quote
Phantom Of Rogue-Gon Posted August 14, 2013 Author Posted August 14, 2013 where the party script? if the player dead there are no cashpoint? Quote
Emistry Posted August 15, 2013 Posted August 15, 2013 OnNPCKillEvent: .@party = getcharid(1); .@map$ = strcharinfo(3); if( .@party ){ addrid( 2,0,.@party ); if( HP > 1 && strcharinfo(3) == .@map$ ){ #CASHPOINTS += 20; } } end; Quote
Phantom Of Rogue-Gon Posted August 16, 2013 Author Posted August 16, 2013 emistry how can i add another mobs and where can put the id of mobs? ill be add 5 mobs OnNPCKillEvent: .@party = getcharid(1); .@map$ = strcharinfo(3); if( .@party ){ addrid( 2,0,.@party ); if( HP > 1 && strcharinfo(3) == .@map$ ){ #CASHPOINTS += 20; } } end; Quote
QQfoolsorellina Posted August 16, 2013 Posted August 16, 2013 (edited) @ Phantom Of Rogue-Gon - script test1234 -1,{ OnNPCKillEvent: for(;.@i<.size;.@i++) if(killedrid== .cm[.@i]) set .@f,1; if(!.@f) end; set .@pid,getcharid(1); if(!.@pid)end; set .map$,strcharinfo(3)); addrid(2,0,.@pid); if( HP && .map$==strcharinfo(3)) set #CASHPOINTS,#CASHPOINTS+20; end; OnInit: setarray .cm[0],1002; //put mob id here set .size,getarraysize(.cm); } @Emistry OnNPCKillEvent: .@party = getcharid(1); .@map$ = strcharinfo(3); if( .@party ){ addrid( 2,0,.@party ); if( HP > 1 && strcharinfo(3) == .@map$ ){ #CASHPOINTS += 20; } } end; .@ this type of var will be gone when you use addrid , so strcharinfo(3) == .@map$ was wrong Edited August 16, 2013 by QQfoolsorellina 1 Quote
Phantom Of Rogue-Gon Posted August 16, 2013 Author Posted August 16, 2013 - script test1234 -1,{ OnNPCKillEvent: for(;.@i<.size;.@i++) if(killedrid== .cm[.@i]) set .@f,1; if(!.@f) end; set .@pid,getcharid(1); if(!.@pid)end; set .map$,strcharinfo(3)); addrid(2,0,.@pid); if( HP && .map$==strcharinfo(3)) set #CASHPOINTS,#CASHPOINTS+20; end; OnInit: setarray .cm[0],1002; //put mob id here set .size,getarraysize(.cm); } where can put the map i add 5 mobs and 3 type of cashpoint cashpoint 20 cashpoint 50 cashpoint 100 Quote
Question
Phantom Of Rogue-Gon
requsting Party points Cashpoint . 1 party in 1 map when the party kill 1 mob got 20Cashpoints
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.