Jump to content
  • 0

Breaker Points and Valkyrie Helm Color Changer


dave23

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  99
  • Reputation:   0
  • Joined:  04/23/12
  • Last Seen:  

1. Breaker Points

- I need a breaker points bulletin. It's like a pvp ladder http://www.eathena.ws/board/index.php?showtopic=260239&hl=ladder but it counts the players breaking point. Please modify this then it posts in a bulletin the top 10.

2. Need a valkyrie helm changer that exchange with an amount of zeny.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  137
  • Reputation:   23
  • Joined:  06/08/12
  • Last Seen:  

1. If you mean by ,,Breaking Points" the Amount of how many times he/ she has broken the Emperium during Siegetime

http://www.eathena.ws/board/index.php?showtopic=233189 | I hope linking to eathena is okay!?

2. Which Valkyrie Helm do you like to exchange? The real one which can be created ingame or a custom version one?

ItemID('s) would be appreciated as well as what for you like to exchange it for (need ItemID here as well). Amount of Zeny is also needed^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Try this. Not tested though.


map,x,y,z script Name 100,{

setarray .@v, 1234,100, 4321,1000; //<ItemID>,<Zeny>{...}
set .@n$, "[Valkyrie Helm Changer]";

for ( set .@i, 0; .@i < getarraysize(.@v); set .@i, .@i + 2 )
{
set .@menu$, .@menu$ + getitemname(.@v[.@i]) + ":";
if ( countitem(.@v[.@i]) > 0 ) setarray .@tmp[getarraysize(.@tmp), .@v[.@i];
}
mes .@n$;
mes "Which Valkyrie Helm would you like to have?";
set .@j, select ( .@menu$ ) - 1;
set .@k, 0;
if ( getarraysize(.@tmp) > 1 )
{
set .@menu$, "";
for ( set .@i, 0; .@i < getarraysize(.@tmp); set .@i, .@i + 1 )
set .@menu$, .@menu$ + getitemname(.@tmp[.@i]) + ":";
mes .@n$;
mes "There are more than one Valkyrie Helm in your inventory.";
mes "Please select one to be exchanged.";
set .@k, select ( .@menu$ ) - 1;
}
next;
mes .@n$;
if ( !.@tmp ) { mes "You need a Valkyrie Helm to use my services."; close; }
if ( Zeny < .@v[.@j+1] ) { mes "You need " + .@v[.@j+1] + "z to use my services."; close; }
mes "Thank you!";
close2;
delitem .@tmp[.@k], 1;
getitem .@v[.@j], 1;
set Zeny, Zeny - .@v[.@j+1];
end;

}

Edited by Joseph
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  99
  • Reputation:   0
  • Joined:  04/23/12
  • Last Seen:  

1. When it is the 23rd of the month, The top breaker will receive a prize that's what i need.

2. Ahm zeny is 1b For exchanging, I'll take care of the item id :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

2. Ahm zeny is 1b For exchanging, I'll take care of the item id :D

Here it is..



map,x,y,z script Name 100,{

set .@z, 1000000000; // Zeny (Default: 1b)
setarray .@v, 1234,4321;  // <ItemID1>,<ItemID2>{...}
set .@n$, "[Valkyrie Helm Changer]"; // NPC Name

for ( set .@i, 0; .@i < getarraysize(.@v); set .@i, .@i + 1 )
{
set .@menu$, .@menu$ + getitemname(.@v[.@i]) + ":";
if ( countitem(.@v[.@i]) > 0 ) setarray .@tmp[getarraysize(.@tmp), .@v[.@i];
}
mes .@n$;
mes "Which Valkyrie Helm would you like to have?";
set .@j, select ( .@menu$ ) - 1;
set .@k, 0;
if ( getarraysize(.@tmp) > 1 )
{
set .@menu$, "";
for ( set .@i, 0; .@i < getarraysize(.@tmp); set .@i, .@i + 1 )
set .@menu$, .@menu$ + getitemname(.@tmp[.@i]) + ":";
mes .@n$;
mes "There are more than one Valkyrie Helm in your inventory.";
mes "Please select one to be exchanged.";
set .@k, select ( .@menu$ ) - 1;
}
next;
mes .@n$;
if ( !.@tmp ) { mes "You need a Valkyrie Helm to use my services."; close; }
if ( Zeny < .@z ) { mes "You need " + .@z + "z to use my services."; close; }
mes "Thank you!";
close2;
delitem .@tmp[.@k], 1;
getitem .@v[.@j], 1;
set Zeny, Zeny - .@z;
end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  08/02/12
  • Last Seen:  

this NPC has some syntax errors when i use on cronus - emulator , can you fix for me ? and when i exchange a helm depending of which is the helm vanishes , sorry of my bad english XDD

WebRep

Classificação geral

Este site não tem classificação

(número de votos insuficientes)

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