Jump to content
  • 0

Gold Room Party Style.


Question

Posted (edited)

Hi, Can i request a script in Gold room.  /lv

 

For example. everytime you kill a monster you get 1 gold HOWEVER if you have 2 or more party members it will increase your gold depending on your party member. And if you stack up to 5 party members. Each kill of your party member will add 1 gold to you. 

 

For example you have 5 people in your party. Every kill you make + 5 gold. and every kill they make + 1 gold to you. /bo

 

 

I really really want this script please help thanks! /kis2  

Edited by omgitsapril

10 answers to this question

Recommended Posts

Posted

Change "your map" to your gold room map

-    script    Kill    -1,{
    OnInit:
        monster "your map",0,0,"Gold Digger",1110,100,strnpcinfo(1)+ "::OnKill";
        end;
    
    OnKill:
        if ( !getcharid(1) ) {
            getitem 969,1;
            end;
        } else {
            getpartymember getcharid(1),1;
            .count = $@partymembercount;
            if ( .count >= 5 || getpartyleader(getcharid(1), 2) != getcharid(0) ) end;
            if ( .count >= 2 ) {
                getitem 969, .count;
                end;
            } else {
                getitem 969,1;
                end;
            }
        }
}
Posted (edited)

Tropa try this one, i cant test it yet(di ako makakapag bukas ng desktop ko today), using cp to reply on this request(ang hirap gamitin ng code box.)

prontera,150,150,4	script	PT-Gold-Room	443,{
set .plimit = 5 // Limit of party member that can enter to goldroom
set .map$,"prontera"; // input gold room/map here
getpartymember getcharid(1),1;
if($@partymembercount == .plimit) {
	mes "Maximum party count exceeded.";	// Improve dialogue
	close;
}
warp ".map$",0,0;
end;

-	script	PT-GOLD-SCRIPT	-1,{
OnNPCKillEvent:
set .map$,"prontera"; // input gold room/map here
setarray .item,501,502; //input prizes here(gold,etc)
setarray .mobs,1001,1002,1003,1004,1005; // input mob id/s here

for(set .@a,1; .@a<getarraysize(.mobs); set .@a,.@a++) {
	for(set .@b,1; .@b<getarraysize(.map$); set .@b,.@b++) {
		if (killedrid == .mobs[.@a] && strcharinfo(3) == .map$[.@b]) {
			for(set .@e,1; .@e<getarraysize(.item); set .@e,.@e++) {
				getpartymember getcharid(1),1;
				set .@ptc,$@partymembercount;
				getitem .item[.@e],.@ptc;
				end;
			}
		}
	}
}

}

Tell me if there`s something wrong.

Edited:

Other lang., nauna na pala nag post si sir patskie, hehe. :)

Edited by Lil Troll
Posted

i believe it would be something like this

http://upaste.me/r/60cc98

 

still you can improve it by adding a check on how many player are actually online ( based on char id check )

 

@Patskie

i dont think using .count would be good idea =) the variable can be altered IF there exist more than 1 party that kill the monster at the same time....even though the chances are really low. 

and it's better to add a check on party member who are online or offline .. =)

 

@Lil Troll

you can actually improve it by separate out those array and declaring variable part.

these variable will not be erased even the script has finished running it.

Posted (edited)

@emistry sir I get 5 or less depends on my party even though they are not online.Can you edit it, If his party member is offline he will only get 1 gold.

Edited by maynard

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...