Jump to content
  • 0

party points


Phantom Of Rogue-Gon

Question


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


OnNPCKillEvent:

.@party = getcharid(1);

.@map$ = strcharinfo(3);

if( .@party ){

addrid( 2,0,.@party );

if( HP > 1 && strcharinfo(3) == .@map$ ){

#CASHPOINTS += 20;

}

}

end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  


-    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 by QQfoolsorellina
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

can you explain it to me?? where can put the ID of mob?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

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 by QQfoolsorellina
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

where the party script? if the player dead there are no cashpoint?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

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;
 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

 @ 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 by QQfoolsorellina
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

-    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

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