hakuren
-
Posts
295 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by hakuren
-
-
-
as the title said,
Rebellion skill effect not working
i used : KRO Re-20160124 <data.grf / rdata.grf>
and Translated data files from <https://github.com/ROClientSide/Translation>
Client Version : 2015-09-16aRagexe
but the Rebellion Skill effects not working
Please help....
-
how can i remove red name when disguise as monster is active
i notice when i use disguise and my level is higher than other player
my name turned to red
Question : is there anyway i can remove it or... turn it to pink like level range?
Question : is this a hardcoded to the client? or src?
-
setarray .@item_id, 501,502,503,504,505,506,507,508,509,510;for (@i=0; @i< 5; @i++){set .@ind, rand(0,getarraysize(.@item_id));getitem .@item_id[.@ind], 1;deletearray .@item_id[.@ind],1;}
i tried it but when the rand value return to previews deletearray value it return 0 and give error
because
.@item_id≠@item_id
and
set @ind, rand(0,getarraysize(.@item_id)-1);
deletearray <array name>[<first value>],<how much to delete>;
prontera,155,125,4 script test 4_m_genie,{ setarray .@item_id[0],501,502,503,504,505,506,507,508,509,510; for(.@i=0; .@i<5;.@i++){ .@pass = 0; // random item .@item = .@item_id[rand(0,getarraysize(.@item_id)-1)]; if(getarraysize(.@del) != 0){ for(.@j=0; .@j<getarraysize(.@del);.@j++){ if(.@del[.@j]==.@item) // repeat break; if(.@j == (getarraysize(.@del)-1)) .@pass = 1; } } else { .@pass = 1; } if(.@pass == 1){ getitem .@item,1; // record gived .@del[.@i] = .@item; } else { .@i -= 1; } } end; }
wow another knowledge acquired thankyou for the information thank you again...
-
setarray .@item_id, 501,502,503,504,505,506,507,508,509,510;for (@i=0; @i< 5; @i++){set .@ind, rand(0,getarraysize(.@item_id));getitem .@item_id[.@ind], 1;deletearray .@item_id[.@ind],1;}
i tried it but when the rand value return to previews deletearray value it return 0 and give error
-
Keep in mind, that this script is really bad performance wise.
It's not wrong, but it's really not optimized.
yeah i think it will give unlimited loop when the rand value return the same
correct me if im wrong or can you give me some idea to optimize this?
-
Hi rAthena,
Question :
- How can a npc script give 5 different items randomly in a array at the same-time.
Example :
- setarray .@item_id, 501,502,503,504,505,506,507,508,509,510;
can someone help me?
Thank you in advance
prontera,155,125,4 script test 4_m_genie,{ setarray .@item_id[0],501,502,503,504,505,506,507,508,509,510; for(.@i=0; .@i<5;.@i++){ .@pass = 0; while(1){ // random item .@item = .@item_id[rand(0,getarraysize(.@item_id)-1)]; if(getarraysize(.@del) != 0){ for(.@j=0; .@j<getarraysize(.@del);.@j++){ if(.@del[.@j]==.@item) // repeat break; if(.@j == (getarraysize(.@del)-1)) .@pass = 1; } } else { break; } if(.@pass == 1) break; } getitem .@item,1; // record gived .@del[.@i] = .@item; } end; }
woooow! thank you @a91323 your script perfectly works! to my condition thankyou so much!!!
and thankyou @Kamii
-
You need to use for loop.
Pseudocode:
for (i=0; i< 5; i++) { getitem @item_id[rand(0,10)], 1; }
Hi @Kamii
thank you for your reply
i use this like this
setarray .@item_id, 501,502,503,504,505,506,507,508,509,510;
for (i=0; i< 5; i++){getitem .@item_id[rand(0,10)], 1;}yes it gives 5 items but... some on it give the same item when the random value is the same as the preview value
i need that 5 random items differently when receive by the player.
-
Hi rAthena,
Question :
- How can a npc script give 5 different items randomly in a array at the same-time.
Example :
- setarray .@item_id, 501,502,503,504,505,506,507,508,509,510;
can someone help me?
Thank you in advance
-
Hi rAthena,
i'm having a problem in Random Option :
• After using "setrandomoption" command to the item it successfully added random option but...
when i relog, it not save to the character the bonus are removed
but.. when you put it to storage / cart or attempt to put random option to another item it saved.
* Here some screenshots :
- This item :
- added random option :
- Relog :
Random option removed :
- put random option to other item :
- After relog :
EDIT : this is how to reproduce this again
step 1 : create @item shoes
step 2 : equip that shoes
step 3 : relog [ to save the shoes state on sql ]
step 4 : login again
step 5 : put setrandomoption to that item
script used : setrandomoption(2,0,1,10,0);
step 6 : relog
step 7 : login again
and the item don't have randomoption
Is i'm only one having this problem?
i'm using latest git
please help thank you in advance
-
is someone got ranger costume please share thankyou
-
hi rathena,
how to remove xmas(lutie) snow and other fields with snow
i used up @snow or clearweather but nothing happen
please help thank you in advance
-
is there any possibility that this plugin works on 2015-09-16Ragexe?
-
hi guys
i just wonder how can i do this?
clickable link and shows item description in a script?
picture credit to : Emistry Haoyan
HI.
Use this :
mes " <ITEMLINK>Text<INFO>item_id</INFO></ITEMLINK>";
Hi thank you for your reply @Balfear
i already tried it but this is the result
im using 2015-10-29aRagexe
-
hi guys
i just wonder how can i do this?
clickable link and shows item description in a script?
picture credit to : Emistry Haoyan
-
how can i make this work in the latest git? please help
i got error
1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4406): error C2039: 'script_vars' : is not a member of 'script_code'1> c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4406): error C2039: 'script_vars' : is not a member of 'script_code'1> c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4408): error C2039: 'script_vars' : is not a member of 'script_code'1> c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4408): error C2039: 'script_vars' : is not a member of 'script_code'1> c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4409): error C2039: 'script_vars' : is not a member of 'script_code'1> c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4409): error C2039: 'script_vars' : is not a member of 'script_code'1> c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4411): error C2039: 'script_vars' : is not a member of 'script_code'1> c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code'1>c:\users\aaaa\desktop\rathena-master\src\map\mob.c(4411): error C2039: 'script_vars' : is not a member of 'script_code'1> c:\users\aaaa\desktop\rathena-master\src\map\script.h(240) : see declaration of 'script_code' -
-
The Screenshots are unclear, and maybe, 1 hour can be a little much and broke the Script.
My config is set to 15s and it's working properly.
// Time in milliseconds to activate protection against Kill Steal // Set to 0 to disable it. // If this is activated and a player is using @noks, damage from others players (KS) not in the party // will be reduced to 0. ksprotection: 15000
i'd change ksprotection into 15000 like what you use
but still other player can attack that monster
here some screenshots
Player 1 Actives the @noks
Player 1 Attacking Monster
Player 2
Player 2 Still can attack Player 1's monster
Hi rathena,
i think @noks is not working in my server or i missing something
heres my config :
// Time in milliseconds to activate protection against Kill Steal// Set to 0 to disable it.// If this is activated and a player is using @noks, damage from others players (KS) not in the party// will be reduced to 0.ksprotection: 3600000 // 1 HourPlayer 1 Active @noksPlayer 2 Still can attack Player 1 target monsterhave you tried looking at the "battle chat" and check if gives off damage? I think it only changes the damage to 0 but does not stop a player from doing an attack animation. Also, notice the monster's HP is not going down.
here :
-
hi i duplication berserk skill from scr scripts but after i rebuild it and test the skill the visual effect didnt add to my custom skill i already use clif_specialeffect 368 but after i warp to other map it remove
so i think the client is the one to edit for enabling the berserk effect to the user used it
can someone help me if im at the wrong section you can correct me
this effect :
EDIT : Other client can see this effect but the user used it dont showed up
more Detail plss Show what did you edit!
You need to edit the source in order to refresh the effect once you change from one map to another.
I don't remember exactly the fragment where it can be set, but that's the way.
I guess that usually the Client-Side take care of keeping the effect active while the SC is active, but, since it's a Custom Skill, a Custom Function will be needed.
The easy way is do that with Scripts, using OnPCMapLoadEvent, but it's a McGyver, not a real solution.
thankyou for your reply i use script command for this and it works
-
Hi rathena,
i think @noks is not working in my server or i missing something
heres my config :
// Time in milliseconds to activate protection against Kill Steal// Set to 0 to disable it.// If this is activated and a player is using @noks, damage from others players (KS) not in the party// will be reduced to 0.ksprotection: 3600000 // 1 HourPlayer 1 Active @noksPlayer 2 Still can attack Player 1 target monster -
Hi guys,
Im making a custom event that change all monster behavior in the area
my question is how to control their mode like Skill Spirit_Control?
turning aggressiveness to passive one
like :
sc_start4(NULL,&md->bl, SC_MODECHANGE, 100,1,0, MD_AGGRESSIVE, 0, 0); // target mob will become aggressive
is there a way that this MD_AGGRESSIVE turn them to PASSIVE?
i search for MD_PASSIVE but i don't see any command like that
Please Help me and Thank you in advance
-
Hi guys,
is there anyway that an npc can check what instance "name" currently activate to the player's party like " 'instancename$ "
or is there anyway like annieruru's script ( instance__ ) can be done using this new instance commands?function script instance__ {
if ( set( .@ins, instance_create( getarg(0), getcharid(1) ) ) < 0 )return .@ins;set .@i, 3;while ( getarg( .@i, "" ) != "" ) {if ( instance_attachmap( getarg(.@i), .@ins ) == "" ) {instance_destroy .@ins;return -5;}set .@i, .@i +1 ;}if ( getarg(1) || getarg(2) )instance_set_timeout getarg(1), getarg(2), .@ins;instance_init .@ins;instance_attach .@ins;return .@ins;}Note : i just want to create when player is out from the instance map it will automatically destroy due to the timeout set.
example : timeout from map 20 seconds. like that
sorry for my bad english
-
hi guys i'd try to use dispbottom and @me to latest svn and client 2013-08-07aRagexe but after i use this to my script
dispbottom "Your points has been increased by : 1000"; and @me "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" (note: i edit the structure of message i remove player name and *: :* symbol)
my client crash is there anyway that this can be fix?
-
Hi guys ask ko lang if pede bang i-disable yung 1rag1 kahit napatch mo na? help naman po thanks in advance
Sa pag kakaalam ko ay pwede mo ulit i-patch ang iyong client.
sinubukan ko kaso meron na error alam nyo po ba yung hex code nung 1rag1 para ma-disable ko nlang gamit yung hex editor ko?
Hindi ko alam yung hex code nya eh. Bakit ayaw mo na lang re-diff client mo gamit ang N.E.M.O?
dalawa na po try ko same error yung kay n.e.m.o saka kay sir shin haha siguro nga try ko nlang ulit gumawa ng bago thank you po sa pag sagot sir angryrestie
Pet Exp System
in Source Requests
Posted
Hi rAthena,
Requesting : "I'm requesting a system that allow to separate the exp system of the pet to its owner."
I saw in the conf/battle/pet.conf that pet_lv_rate mixed with its master's level :
so if its possible to have its own petexptable.txt on the db for each pets