Jump to content
  • 0

Gold Room Party Style.


Light

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   1
  • Joined:  12/09/12
  • Last Seen:  

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

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   1
  • Joined:  12/09/12
  • Last Seen:  

Btw. haha noob question. Where to i place this? :( Sorry!

Edited by omgitsapril
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Btw. haha noob question. Where to i place this? :( Sorry!

npc/custom

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   1
  • Joined:  12/09/12
  • Last Seen:  

Right thanks! :)



Btw. haha noob question. Where to i place this? :( Sorry!

npc/custom

 

 

Doesn't work. Says Problem-1.png

 

Can you show me how to do it properly? i mean how to put in my npc/custom folder? thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

/swt

-<TAB>script<TAB>Kill<TAB>-1,{


Can you show me how to do it properly? i mean how to put in my npc/custom folder? thanks
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  06/29/13
  • Last Seen:  

no work! :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Show error if any

Link to comment
Share on other sites


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

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

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