-
Posts
52 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Posts posted by Imbecile
-
-
On 12/2/2024 at 2:49 AM, Mice said:
Try not tested
- script atcommand_main -1,{ OnAtStorage: // Check GM level before proceeding if (getgmlevel() < 90) { dispbottom "You must be GM level 90 or above to use this command!"; end; } .@map$ = strcharinfo(3); // Check if player is in PVP or GVG map if (getmapflag(.@map$, mf_pvp) || getmapflag(.@map$, mf_gvg)) { dispbottom "You cannot use @storage in PVP/GVG maps."; } else { openstorage; } end; OnAtLoad: // Check GM level before proceeding if (getgmlevel() < 90) { dispbottom "You must be GM level 90 or above to use this command!"; end; } .@map$ = strcharinfo(3); // Check if player is in PVP or GVG map if (getmapflag(.@map$, mf_pvp) || getmapflag(.@map$, mf_gvg)) { dispbottom "You cannot use @load in PVP/GVG maps."; } else { warp "SavePoint", 0, 0; } end; OnAtGo: // Check GM level before proceeding if (getgmlevel() < 90) { dispbottom "You must be GM level 90 or above to use this command!"; end; } .@map$ = strcharinfo(3); // Check if player is in PVP or GVG map if (getmapflag(.@map$, mf_pvp) || getmapflag(.@map$, mf_gvg)) { dispbottom "You cannot use @go in PVP/GVG maps."; } else { // Implement go logic if needed } end; // Bind the commands to their respective NPC scripts OnInit: bindatcmd "storage", strnpcinfo(3) + "::OnAtStorage"; bindatcmd "load", strnpcinfo(3) + "::OnAtLoad"; bindatcmd "go", strnpcinfo(3) + "::OnAtGo"; end; }
hello sir. thank you for being so helpful. when I'm using the script you gave me, it makes other players can't use @go, @load and @storage anywhere lol. so I decided not using it. thank you for your help @Mice
-
9 hours ago, mrfizi said:
Why not use mapflag? https://github.com/rathena/rathena/blob/master/doc/mapflags.txt
Setting on your https://github.com/rathena/rathena/tree/master/npc/mapflag
then restart your server.
hello sir. do you mean creating new mapflag?
-
Hello. So i want to make players can't use commands like @storage, @load or @go on pvp and gvg mapflag but still can use @refresh. So I use this script
```
- script atcommand_main -1,{
OnAtStorage:
// Check GM level before proceeding
if (getgmlevel() < 90) {
dispbottom "You must be GM level 90 or above to use this command!";
end;
}
.@map$ = strcharinfo(3);
if (getmapflag(.@map$, mf_pvp) || getmapflag(.@map$, mf_gvg)) {
dispbottom .@atcmd_command$ + " failed in PVP/GVG maps";
}
else {
openstorage;
}
end;
OnAtLoad:
// Check GM level before proceeding
if (getgmlevel() < 90) {
dispbottom "You must be GM level 90 or above to use this command!";
end;
}
.@map$ = strcharinfo(3);
if (getmapflag(.@map$, mf_pvp) || getmapflag(.@map$, mf_gvg)) {
dispbottom .@atcmd_command$ + " failed in PVP/GVG maps";
}
else {
warp "SavePoint", 0, 0;
}
end;
OnAtGo:
// Check GM level before proceeding
if (getgmlevel() < 90) {
dispbottom "You must be GM level 90 or above to use this command!";
end;
}
.@map$ = strcharinfo(3);
if (getmapflag(.@map$, mf_pvp) || getmapflag(.@map$, mf_gvg)) {
dispbottom .@atcmd_command$ + " failed in PVP/GVG maps";
}
else {
// Implement go logic if needed
}
end;OnInit:
// Binding @storage, @load, and @go commands
bindatcmd "storage", strnpcinfo(3) + "::OnAtStorage";
bindatcmd "load", strnpcinfo(3) + "::OnAtLoad";
bindatcmd "go", strnpcinfo(3) + "::OnAtGo";
end;
}```but the problem is that the commands @storage, @load, and @go can't be used outside the PVP and gvg mapflag. can someone please help me?
-
Hello. Can someone help me make this NPC, please? I've tried to make this NPC by myself but it's a total disaster. Thank you.
-
On 1/10/2018 at 4:59 AM, Cian said:
Test this.
still not enchanting sir
when enchanting armor and shoes, it works fine. when it comes to headgear and manteau, it's not working. what should i do?
-
1
-
-
29 minutes ago, Cian said:
if(.@slot == 2) { getitem2 .@itemid, 1, 1, 0, 0, 0, 0, .@addpart, 0; } else if(.@slot == 3) { getitem2 .@itemid, 1, 1, 0, 0, 0, 0, .@slot3Id, .@addpart; } specialeffect 154; close;
Remove close; at the end of the file
ah yes. the error on map server is gone. thank you sir @Cian . but the manteau and the headgear still can't be enchant. what should i do?
-
hello @Alayne ! this script is great! oh btw, i wanna give you a report about your script
1. whenever i use the enchant option, the map-server showing this
2. whenever i enchant option for the decoration and manteau, it's showing the progress bar, but after it finished, there's no enchant on the equipment
please help me fix it mate. and thank you so much for sharing this script for us!
-
I already change that. Btw i got another error. When i go to morse cave, the warp portal already appear. After i killed the wounded morroc, it's stuck. not warping at all. can you please fix it?
-
Hello @Alayne . I need your help. Some of the NPC already appear. can you please fix it? i'm using packetver 20170517
-
Hello @Alayne . I'm excited to use your script! thank you! but i'm trying to use your morse cave instance and here's what i got :
what should i do?
i'm using rathena PACKETVER 20170517
-
Hello @Capuche . I'm using your script as my MVP Ranker. But i found something weird. Whenever i killed an MVP, the points raised randomly instead of 1. What should i change to make 1 mvp = 1 point? Thank you.
So sorry for the spam question. I thought my connection was bad and my post didn't send. Turns out it goes up. So sorry.
-
Hello. I'm using your script as my MVP Rank. But i found something odd. Whenever i killed an MVP, the points raised randomly instead of 1. What did i miss?
-
Hello Rathena
I'm using this script for my daily login reward. But after achieved day 28, the reward won't reset to day 1. I will got the day 28 reward repeatedly. How to fix it? Thank you
-
okay. i will send it to you. thanks for your help sir
-
hi @sader1992 . Yes i only re-type the whole script in case that is the problem why the 6011 won't disappear. But i guess i'm wrong. What should i do?
-
Hello
So i use this mining script and i want to edit it so you can use two different items with one npc. the item code is 6010 and 6011. But the delitem only work for ID 6010. the item with ID 6011 are not dissapear. Please help me.
Here's the script :
if(@mining != 0) goto Lstillmine;
if(.mining != 0) goto Lalreadymine;
//mes "Do you want to mine this rock?";
//menu "Proceed",-;
//next;if(countitem(6010) < 1 && countitem(6011) < 1) goto Lnopick;
set @minechance,rand(1,2); //50% chance to obtain Ore
set @purechance,rand(1,3); //33.33% chance to obtain an ADDITIONAL mithril, which sells higherset .mining,1;
set @mining,1;
pcblockmove getcharid(3),1;if(MineLvl == 0) {
misceffect 102; //Mining level 0 waits 4 seconds before mining
sleep2 1000;
misceffect 102;
sleep2 1000;
misceffect 102;
sleep2 1000;
misceffect 102;
sleep2 1000;
set .mining,0;
set @mining,0;
pcblockmove getcharid(3),0;if(@minechance == 2) {
misceffect 154;
set MineExp,MineExp+1;
if(@purechance == 3) getitem 32489,2;
else getitem 32489,1;
goto Lsuccess;
}
else {
misceffect 155;
delitem 6010,1;
goto Lfail;
}
}else if(MineLvl == 1) {
misceffect 102; //Mining level 1 waits 3 seconds before mining
sleep2 1000;
misceffect 102;
sleep2 1000;
misceffect 102;
sleep2 1000;
set .mining,0;
set @mining,0;
pcblockmove getcharid(3),0;if(@minechance == 2) {
misceffect 154;
set MineExp,MineExp+1;
if(@purechance == 3) getitem 32489,2;
else getitem 32489,1;
goto Lsuccess;
}
else {
misceffect 155;
delitem 6010,1;
goto Lfail;
}
}else if(MineLvl == 2) { //Mining level 2 waits 2 seconds before mining
misceffect 102;
sleep2 1000;
misceffect 102;
sleep2 1000;
set .mining,0;
set @mining,0;
pcblockmove getcharid(3),0;if(@minechance == 2) {
misceffect 154;
set MineExp,MineExp+1;
if(@purechance == 3) getitem 32489,2;
else getitem 32489,1;
goto Lsuccess;
}
else {
misceffect 155;
delitem 6010,1;
goto Lfail;
}
}if(MineLvl == 3) {
misceffect 102; //Mining level 3 waits 1 second before mining
sleep2 1000;
set .mining,0;
set @mining,0;
pcblockmove getcharid(3),0;
if(@minechance == 2) {
misceffect 154;
set MineExp,MineExp+1;
if(@purechance == 3) getitem 32489,2;
else getitem 32489,1;
goto Lsuccess;
}
else {
misceffect 155;
delitem 6010,1;
goto Lfail;
}
}if(MineLvl == 0) {
misceffect 102; //Mining level 0 waits 4 seconds before mining
sleep2 1000;
misceffect 102;
sleep2 1000;
misceffect 102;
sleep2 1000;
misceffect 102;
sleep2 1000;
set .mining,0;
set @mining,0;
pcblockmove getcharid(3),0;if(@minechance == 2) {
misceffect 154;
set MineExp,MineExp+1;
if(@purechance == 3) getitem 32489,2;
else getitem 32489,1;
goto Lsuccess;
}
else {
misceffect 155;
delitem 6011,1;
goto Lfail;
}
}else if(MineLvl == 1) {
misceffect 102; //Mining level 1 waits 3 seconds before mining
sleep2 1000;
misceffect 102;
sleep2 1000;
misceffect 102;
sleep2 1000;
set .mining,0;
set @mining,0;
pcblockmove getcharid(3),0;if(@minechance == 2) {
misceffect 154;
set MineExp,MineExp+1;
if(@purechance == 3) getitem 32489,2;
else getitem 32489,1;
goto Lsuccess;
}
else {
misceffect 155;
delitem 6011,1;
goto Lfail;
}
}else if(MineLvl == 2) { //Mining level 2 waits 2 seconds before mining
misceffect 102;
sleep2 1000;
misceffect 102;
sleep2 1000;
set .mining,0;
set @mining,0;
pcblockmove getcharid(3),0;if(@minechance == 2) {
misceffect 154;
set MineExp,MineExp+1;
if(@purechance == 3) getitem 32489,2;
else getitem 32489,1;
goto Lsuccess;
}
else {
misceffect 155;
delitem 6011,1;
goto Lfail;
}
}if(MineLvl == 3) {
misceffect 102; //Mining level 3 waits 1 second before mining
sleep2 1000;
set .mining,0;
set @mining,0;
pcblockmove getcharid(3),0;
if(@minechance == 2) {
misceffect 154;
set MineExp,MineExp+1;
if(@purechance == 3) getitem 32489,2;
else getitem 32489,1;
goto Lsuccess;
}
else {
misceffect 155;
delitem 6011,1;
goto Lfail;
}
} -
what about the schg_cas04 map sir? isn't there are no mob in there?
-
Hi everyone. I want to ask something. Why is on my ragnarok always crash when i go to some map?
My crashes map are :
schg_cas04
schg_cas05
disc_dun03
etc
and many other maps
I already check on my grf, there is no .gat file. but, i try to download the latest kro and compare it to my grf, it has no difference. What should i do to fix this? Thanks.
-
On 11/7/2017 at 5:58 AM, Tokei said:
Well if the file is encrypted then you won't be able to view its content (or extract it). Otherwise it would be a permission issue that prevents the software from extracting the files. Or perhaps the extraction path has a problem, so try to use "Extract..." instead.
I did. But it still not working. Whenever i want to take the file from the grf out to my files it just blinking white and nothing happen. I already run it as admin but it still not working. What should i do?
-
Hi everyone. I got the same issue too. My deep sleep lullaby only lasted for 1 - 2 seconds. I think there's an error remembering that lv 5 deep sleep lullaby got effect 20 seconds deep sleep effect. i already check that link above but it still not working. You guys got any idea? Thanks btw.
-
20 hours ago, Tokei said:
Well you'll have to provide more details than that.
Hahaha sorry mate. Everytime i'm trying to extract the file inside my grf, i do a right-click, and then extract. Whenever i do that, my grf editor just blinking white and done nothing. Is it error or there's a setting that need to change?
-
Hi. Can i ask something? My GRF Editor cannot extract the file from grf to my pc. What should i do?
-
Hi sir! I'm using your script and it's awesome! But i want to make a npc for it. But if i input the atcommand "@claim" in the script, it says @claim is unknown command. How do i fix this? Thanks
-
4 hours ago, rakuzas said:
For 2015 client you may disabled using NEMO..
And FYI, you can set cloth color to 0.. And its working for me.. Or you can edit or make script with using changelook.. As in my case before, my dress room give cloth color #1 and it shown black as your image.. So I edit it to make it 0.. And it work.. Also.. Alternate outfit dont have color variety.. So I set my server limit using default color only.. Hope this help you..dear sir @rakuzas, may i get your dress room script? i don't have that
NPC Costume Enchant For Specific Item
in General Support
Posted
Hello. So i planned to use this script
prontera,157,163,4 script Donate Costume Enchanter 101,{
disable_items;
mes .n$;
mes "Hello, "+strcharinfo(0)+"!";
mes "I can enchant your costume equipment with up to 2 random enchantments.";
mes ( (.enchant_cost[0] > 0)?"The cost is "+.enchant_cost[1]+"x "+getitemname(.enchant_cost[0])+".":"This service is free.");
next;
mes "Please select the costume you want to enchant:";
for ( set .@s,0; .@s < getarraysize(.equip_slot); set .@s,.@s + 1) {
set .@c_m$,.@c_m$ + ((getequipid(.equip_slot[.@s]) != -1) ? "["+.equip_slot_name[.@s]+"] "+getitemname(getequipid(.equip_slot[.@s])) : "") + ( (.equip_slot[.@s+1] != 0)?":":"");
}
set .@c_m$,.@c_m$ + ":- Cancel";
set .@c,select(.@c_m$);
if(.@c > getarraysize(.equip_slot)) close;
set .@part,.equip_slot[.@c-1];
set .@hg,getequipid(.@part); // Saving Item ID
set .@ref,getequiprefinerycnt(.@part); // Saving Refine Level
set .@card1,getequipcardid(.@part,0); // Save Item ID of Card Slot 1
// Validate Item ID
if (is_valid_item(.@hg) == 0) {
mes "This item cannot be enchanted.";
close;
}
mes "Selected Equipment: "+getitemname(.@hg);
next;
if (.enchant_cost[0] > 0 && countitem(.enchant_cost[0]) < .enchant_cost[1]) {
mes "You do not have enough "+getitemname(.enchant_cost[0])+" to proceed.";
close;
}
delitem .enchant_cost[0],.enchant_cost[1];
mes "Enchanting your equipment...";
next;
emotion ET_THX;
set .@rune,rand(0,getarraysize(.enchant_id)/3)*3; // First enchant
set .@rune2,rand(0,getarraysize(.enchant_id)/3)*3; // Second enchant
if (.enchant_id[.@rune] == 0 || .enchant_id[.@rune2] == 0) {
mes "Enchantment ^FF0000Failed^000000. I'm really sorry >.<";
close;
}
delequip .@part;
getitem2 .@hg,1,1,.@ref,0,.@card1,.enchant_id[.@rune],0,.enchant_id[.@rune2];
equip .@hg;
mes "Your equipment has been successfully enchanted with:";
mes "^FF0000"+getitemname(.enchant_id[.@rune])+"^000000 and ^FF0000"+getitemname(.enchant_id[.@rune2])+"^000000.";
enable_items;
close;
function is_valid_item {
setarray .upper_items[0],31589,31429,20432,19836,400124,31513,31849,20316;
setarray .middle_items[0],31923,31515,31186,410226,410108,31301,31847,410049,31380,31686;
setarray .lower_items[0],31057,31545,31178,420152,31300,31533;
setarray .garment_items[0],480243,480244,20599,480288,20621,20988,480223,480361,480096;
// Check if the item ID is valid for any category
if (inarray(.upper_items, .@hg) != -1) return 1;
if (inarray(.middle_items, .@hg) != -1) return 1;
if (inarray(.lower_items, .@hg) != -1) return 1;
if (inarray(.garment_items, .@hg) != -1) return 1;
return 0; // Invalid item if not found in any category
}
OnInit:
setarray .equip_slot[0],EQI_COSTUME_HEAD_TOP,EQI_COSTUME_HEAD_MID,EQI_COSTUME_HEAD_LOW,EQI_COSTUME_GARMENT;
setarray .equip_slot_name[0],"Top","Middle","Lower","Garment";
setarray .enchant_cost[0],3000003,10; // Item ID, Amount
setarray .enchant_id[0],4700,50,1,4701,5,1,4710,50,1,4711,5,1,4720,50,1,4721,5,1,4730,50,1,4731,5,1;
end;
}
but I got error like this :
parse_simpleexpr: unmatched ')'
17 : set .@hg,getequipid(.@part); // Saving Item ID
18 : set .@ref,getequiprefinerycnt(.@part); // Saving Refine Level
19 : set .@card1,getequipcardid(.@part,0); // Save Item ID of Card Slot 1
20 :
21 : // Validate Item ID
* 22 : if (is_valid_item'('@hg) == 0) {
23 : mes "This item cannot be enchanted.";
24 : close;
25 : }
26 :
27 : mes "Selected Equipment: "+getitemname(.@hg);
I already googled and try everything but it still not working at all. I need help