Phantom Of Rogue-Gon Posted August 13, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Share Posted August 13, 2013 requsting Party points Cashpoint . 1 party in 1 map when the party kill 1 mob got 20Cashpoints Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 15, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted August 13, 2013 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share 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 Link to comment Share on other sites More sharing options...
Phantom Of Rogue-Gon Posted August 13, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Author Share Posted August 13, 2013 can you explain it to me?? where can put the ID of mob? Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted August 13, 2013 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share 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 Link to comment Share on other sites More sharing options...
Phantom Of Rogue-Gon Posted August 14, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Author Share Posted August 14, 2013 where the party script? if the player dead there are no cashpoint? Quote Link to comment Share on other sites More sharing options...
Phantom Of Rogue-Gon Posted August 16, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted August 16, 2013 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share 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 Link to comment Share on other sites More sharing options...
Phantom Of Rogue-Gon Posted August 16, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
Question
Phantom Of Rogue-Gon
requsting Party points Cashpoint . 1 party in 1 map when the party kill 1 mob got 20Cashpoints
Link to comment
Share on other sites
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.