Hi, rAthena Community i wanna request a NPC with this... i guess is possible because i saw a similar time ago (was a fishing npc as i remember...)
The NPC Requested:
1.- the NPC will give you 1 item at random of a list of X amount of items (i dont know could get a jellopy or a fluff or a poring coing, etc).
2.- before the NPC give you that random item, first the npc will ask you to give 1 of the next 4 items: Bronze Coin(673), Silver Coin (675), Gold Coin (671) & Platinum Coin (677).
3.- if you give bronze coin, a progressbar will show with a duration of 10 seconds, if you give silver again a progressbar with 8 seconds... gold -> 5 seconds, platinum - 2 seconds.
The percent (%) of the items i want they be editable (i mean i can select if 10% which item, or 1%, etc).
After the progressbar start... the npc will deleted your item (coin).
Extra: if could add something like an announce when the player get a "very rare item" would be nice.
Thx... as i said i saw a similar NPC like this some years ago was a fishing script or something like that, that fishing npc tell you that you need a fishing bait, and stuff like that as i remember... that npc had the progress bar also the announce, the 1 item of a list and the % of the items, the only thing that didnt have was that option of "if you give this item the wait will be less"
i gonna try find that script to have a better idea... and adding that script here if helps thx... if dont understand something... just tell me to explain it better
Edit:
these are the scripts i found and were "similar" that i want:
prontera,160,172,0 script Fishing Hole 844,{
//Fishing rod
set .@Rod,2764;
//Fishing Lure
set .@Lure,2775;
//Auto-Fish
set .@Auto,1;
//Auto-Fish on Fail
set .@AutoFail,1;
Fish:
if (isequipped(.@Rod)) && (isequipped(.@Lure)){
specialeffect EF_BUBBLE,"Fishing Hole";
soundeffect "fishingrod.wav",0;
dispbottom "[Fishing] Casting...";
set .@fcast,15;
if (isequipped(2550)) { //Fisher's Muffler
set .@fcast,.@fcast - 2;
}
if (isequipped(2443)) { //Fisher's Boots
set .@fcast,.@fcast - 2;
}
if (isequipped(2764)) { //Fishing Pole
set .@fcast,.@fcast - 3;
}
if (isequipped(2775)) { //Fishing Lure
set .@fcast,.@fcast - 1;
}
progressbar "ffffff",.@fcast;
if (rand(1,20) == 2){
getitem 6096,1; //Fish with Blue Back
specialeffect2 EF_TEMP_OK;
soundeffectall "success.wav",0,strcharinfo(3);
mapannounce strcharinfo(3),strcharinfo(0)+" has caught a Blue Fish!",bc_map,"0xff77ff";
if(.@Auto==1){
goto Fish;}else{
end;}
}
if (rand(1,6) == 1) ||(rand(1,6) == 3) || (rand(1,6) == 6){
setarray .@Catch[0],579,908,909,963,956,6049,918,960,910,938,624;// List of Junk/Other
set .@CatchRand,.@Catch[rand(getarraysize(.@Catch))];
getitem .@CatchRand,1;
}
else {
dispbottom "[Fishing] Nothing was caught...";
if(.@AutoFail == 1){
goto Fish;} else{
end;}
}
if (rand(1,100) == 3){
setarray .@Rare[0],644,603,617;
set .@RareCatch, .@Rare[rand(getarraysize(.@Rare))];
getitem .@RareCatch,1; //Reward
mapannounce strcharinfo(3),strcharinfo(0)+" has caught a "+getitemname(.@RareCatch)+"!",bc_map,"0x33CC00";
}
if(.@Auto == 1){
goto Fish;} else{
end;}
}
else {
dispbottom "[Fishing] You need a Rod and Lure.";
end;
}
}
also this
comodo,196,112,6 script School of Fish 723,{
if(countitem(632) < 1) goto L_Exit;
L_Exit:
mes "You do not have Fatty Chubby.";
close;
delitem 632,1;
if (isequipped(2764)) && (isequipped(2775)){
specialeffect2 EF_BUBBLE;
set .@fcast,15;
if (isequipped(2550)) set .@fcast,.@fcast-3; //Fisher's Muffler.
}
if (isequipped(2443)) set .@fcast,.@fcast-2; //Fish_Shoes
}
if (isequipped(5380)) set .@fcast,.@fcast-5; //Fish_Shoes
}
progressbar "ffffff",.@fcast;
if (rand(1,20) == 2) {
getitem 6096,5; //Big Fish
specialeffect EF_BUBBLE;
mapannounce "comodo","" + strcharinfo(0) + " has caught a 5 Tuna!!!",bc_map,"0xff77ff";
end;
}
set .@rhea_ran,rand(1,70);
if (.@rhea_ran < 20) {
specialeffect2 610;
getitem 29183,1; //Anchovy
}
else if (.@rhea_ran == 20) {
specialeffect2 610;
getitem 29184,1; //Bass
}
else if (.@rhea_ran == 21) {
specialeffect2 610;
getitem 29185,1; //Crab
}
else if (.@rhea_ran == 22) {
specialeffect2 610;
getitem 29186,1; //Eel
}
else if (.@rhea_ran == 23) {
specialeffect2 610;
getitem 29187,1; //Jelly Fish
}
else if (.@rhea_ran == 24) {
specialeffect2 610;
getitem 29188,1; //Lobster
}
else if (.@rhea_ran == 25) {
specialeffect2 610;
getitem 29189,1; //Perch
}
else if (.@rhea_ran == 26) {
specialeffect2 610;
getitem 29190,1; //Pike
}
else if (.@rhea_ran == 27) {
specialeffect2 610;
getitem 29191,1; //Puffer
}
else if (.@rhea_ran == 28) {
specialeffect2 610;
getitem 9192,1; //Salmon
}
else if ((.@rhea_ran > 28) && (.@rhea_ran < 40)) {
specialeffect2 610;
getitem 632,1; //Fatty Chubby Earthworm
}
else {
mes "Nothing was caught.";
specialeffect2 611;
close;
}
if (rand(1,200) == 3) {
getitem 6096,20; //Gift_Box
mapannounce "comodo","" + strcharinfo(0) + " has caught a 20 Tuna Fish!!",bc_map,"0x0000ff";
}
if (rand(1,500) == 3) {
getitem 6096,30; //Old_Blue_Box
mapannounce "comodo","" + strcharinfo(0) + " has caught an 30 Tuna Fish!",bc_map,"0x00ffff";
}
if (rand(1,3000) == 3) {
getitem 6096,50; //Old_Violet_Box
mapannounce "comodo","" + strcharinfo(0) + " has caught an 50 Tuna Fish!!",bc_map,"0x44ff44";
}
end;
}
else {
mes "Fish are swimming in the water.";
close;
}
}
comodo.gat,189,108,4 duplicate(School of Fish) School of Fish#1 1158
comodo.gat,183,111,4 duplicate(School of Fish) Tilapya#20 2082
comodo.gat,218,108,4 duplicate(School of Fish) School of Fish#21 1069
comodo.gat,228,108,3 duplicate(School of Fish) School of Fish#22 1158
comodo.gat,214,112,4 duplicate(School of Fish) School of Fish#23 723
comodo.gat,189,122,4 duplicate(School of Fish) Mr Crab#23 1073
comodo.gat,192,106,4 duplicate(School of Fish) Octopus#23 1144
//Shop
comodo,205,112,4 shop Bulantiro 1543,2764:50000000,2775:50000000,2550:100000000,2443:200000000
Question
ItsFree
Hi, rAthena Community i wanna request a NPC with this... i guess is possible because i saw a similar time ago (was a fishing npc as i remember...)
The NPC Requested:
1.- the NPC will give you 1 item at random of a list of X amount of items (i dont know could get a jellopy or a fluff or a poring coing, etc).
2.- before the NPC give you that random item, first the npc will ask you to give 1 of the next 4 items: Bronze Coin(673), Silver Coin (675), Gold Coin (671) & Platinum Coin (677).
3.- if you give bronze coin, a progressbar will show with a duration of 10 seconds, if you give silver again a progressbar with 8 seconds... gold -> 5 seconds, platinum - 2 seconds.
The percent (%) of the items i want they be editable (i mean i can select if 10% which item, or 1%, etc).
After the progressbar start... the npc will deleted your item (coin).
Extra: if could add something like an announce when the player get a "very rare item" would be nice.
Thx... as i said i saw a similar NPC like this some years ago was a fishing script or something like that, that fishing npc tell you that you need a fishing bait, and stuff like that as i remember... that npc had the progress bar also the announce, the 1 item of a list and the % of the items, the only thing that didnt have was that option of "if you give this item the wait will be less"
i gonna try find that script to have a better idea... and adding that script here if helpsEdit:
these are the scripts i found and were "similar" that i want:
prontera,160,172,0 script Fishing Hole 844,{ //Fishing rod set .@Rod,2764; //Fishing Lure set .@Lure,2775; //Auto-Fish set .@Auto,1; //Auto-Fish on Fail set .@AutoFail,1; Fish: if (isequipped(.@Rod)) && (isequipped(.@Lure)){ specialeffect EF_BUBBLE,"Fishing Hole"; soundeffect "fishingrod.wav",0; dispbottom "[Fishing] Casting..."; set .@fcast,15; if (isequipped(2550)) { //Fisher's Muffler set .@fcast,.@fcast - 2; } if (isequipped(2443)) { //Fisher's Boots set .@fcast,.@fcast - 2; } if (isequipped(2764)) { //Fishing Pole set .@fcast,.@fcast - 3; } if (isequipped(2775)) { //Fishing Lure set .@fcast,.@fcast - 1; } progressbar "ffffff",.@fcast; if (rand(1,20) == 2){ getitem 6096,1; //Fish with Blue Back specialeffect2 EF_TEMP_OK; soundeffectall "success.wav",0,strcharinfo(3); mapannounce strcharinfo(3),strcharinfo(0)+" has caught a Blue Fish!",bc_map,"0xff77ff"; if(.@Auto==1){ goto Fish;}else{ end;} } if (rand(1,6) == 1) ||(rand(1,6) == 3) || (rand(1,6) == 6){ setarray .@Catch[0],579,908,909,963,956,6049,918,960,910,938,624;// List of Junk/Other set .@CatchRand,.@Catch[rand(getarraysize(.@Catch))]; getitem .@CatchRand,1; } else { dispbottom "[Fishing] Nothing was caught..."; if(.@AutoFail == 1){ goto Fish;} else{ end;} } if (rand(1,100) == 3){ setarray .@Rare[0],644,603,617; set .@RareCatch, .@Rare[rand(getarraysize(.@Rare))]; getitem .@RareCatch,1; //Reward mapannounce strcharinfo(3),strcharinfo(0)+" has caught a "+getitemname(.@RareCatch)+"!",bc_map,"0x33CC00"; } if(.@Auto == 1){ goto Fish;} else{ end;} } else { dispbottom "[Fishing] You need a Rod and Lure."; end; } }
also this
comodo,196,112,6 script School of Fish 723,{ if(countitem(632) < 1) goto L_Exit; L_Exit: mes "You do not have Fatty Chubby."; close; delitem 632,1; if (isequipped(2764)) && (isequipped(2775)){ specialeffect2 EF_BUBBLE; set .@fcast,15; if (isequipped(2550)) set .@fcast,.@fcast-3; //Fisher's Muffler. } if (isequipped(2443)) set .@fcast,.@fcast-2; //Fish_Shoes } if (isequipped(5380)) set .@fcast,.@fcast-5; //Fish_Shoes } progressbar "ffffff",.@fcast; if (rand(1,20) == 2) { getitem 6096,5; //Big Fish specialeffect EF_BUBBLE; mapannounce "comodo","" + strcharinfo(0) + " has caught a 5 Tuna!!!",bc_map,"0xff77ff"; end; } set .@rhea_ran,rand(1,70); if (.@rhea_ran < 20) { specialeffect2 610; getitem 29183,1; //Anchovy } else if (.@rhea_ran == 20) { specialeffect2 610; getitem 29184,1; //Bass } else if (.@rhea_ran == 21) { specialeffect2 610; getitem 29185,1; //Crab } else if (.@rhea_ran == 22) { specialeffect2 610; getitem 29186,1; //Eel } else if (.@rhea_ran == 23) { specialeffect2 610; getitem 29187,1; //Jelly Fish } else if (.@rhea_ran == 24) { specialeffect2 610; getitem 29188,1; //Lobster } else if (.@rhea_ran == 25) { specialeffect2 610; getitem 29189,1; //Perch } else if (.@rhea_ran == 26) { specialeffect2 610; getitem 29190,1; //Pike } else if (.@rhea_ran == 27) { specialeffect2 610; getitem 29191,1; //Puffer } else if (.@rhea_ran == 28) { specialeffect2 610; getitem 9192,1; //Salmon } else if ((.@rhea_ran > 28) && (.@rhea_ran < 40)) { specialeffect2 610; getitem 632,1; //Fatty Chubby Earthworm } else { mes "Nothing was caught."; specialeffect2 611; close; } if (rand(1,200) == 3) { getitem 6096,20; //Gift_Box mapannounce "comodo","" + strcharinfo(0) + " has caught a 20 Tuna Fish!!",bc_map,"0x0000ff"; } if (rand(1,500) == 3) { getitem 6096,30; //Old_Blue_Box mapannounce "comodo","" + strcharinfo(0) + " has caught an 30 Tuna Fish!",bc_map,"0x00ffff"; } if (rand(1,3000) == 3) { getitem 6096,50; //Old_Violet_Box mapannounce "comodo","" + strcharinfo(0) + " has caught an 50 Tuna Fish!!",bc_map,"0x44ff44"; } end; } else { mes "Fish are swimming in the water."; close; } } comodo.gat,189,108,4 duplicate(School of Fish) School of Fish#1 1158 comodo.gat,183,111,4 duplicate(School of Fish) Tilapya#20 2082 comodo.gat,218,108,4 duplicate(School of Fish) School of Fish#21 1069 comodo.gat,228,108,3 duplicate(School of Fish) School of Fish#22 1158 comodo.gat,214,112,4 duplicate(School of Fish) School of Fish#23 723 comodo.gat,189,122,4 duplicate(School of Fish) Mr Crab#23 1073 comodo.gat,192,106,4 duplicate(School of Fish) Octopus#23 1144 //Shop comodo,205,112,4 shop Bulantiro 1543,2764:50000000,2775:50000000,2550:100000000,2443:200000000
those scripts its to have a more clear idea
Edited by ItsFree9 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.