-
Posts
1691 -
Joined
-
Last visited
-
Days Won
78
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Everything posted by sader1992
-
this where rAthena removed the password from this command https://github.com/rathena/rathena/commit/2746e0d351fb141b9e55220778c8934dd45f4028 you can try to undo the changes and hope everything work after all this time
-
how to collect all iteminfo on divine-pride to iteminfo.lub/lua?
sader1992 replied to jumpocz's question in Client-side Support
I wanted to write a tool for that before , but I think I found one that does that , I am not sure but maybe @Cydh or @Secrets who wrote it. I don't remember if it was for the info in the server side (item_db) or the client side (iteminfo.lub) -
[Error]: buildin_getcharid: Player with nick '' is not found.
sader1992 replied to Mahiro's question in Scripting Support
getcharid works only on online characters -
also you can just redirect to the npc instead of using a duplicate for example: prontera,263,209,6 duplicate(Deathmatch PvP Warper) DM PvP Warper#prt02 823 to prontera,263,209,6 script DM PvP Warper#prt02 823,{ doevent("Deathmatch PvP Warper:OnTalk"); } and add OnTalk: at the start of the original npc
-
[Error]: get_val_: fatal error ! player not attached!
sader1992 replied to DEsMOn's question in Scripting Support
not sure what the script does , but to fix the error you can replace all the "@prace_winner$" with something like ".prace_winner_2$" -
well, you posted your topic in the forum issues section , so i think his assumption that you don't know how to use the search engine is reasonable ?
-
- script GM_AUTO_SPEED -1,{ OnPCLoginEvent: if(getgroupid() == 99){ atcommand "@speed 0"; } end; }
- 1 reply
-
- 1
-
-
[ Solved ] R>mysql workbench 5.7
sader1992 replied to Sallycantdance's question in Third Party Support
"MySQL Workbench" != "MySQL Server" I don't think "MySQL Workbench 5.7" exist. -
[Error]: buildin_strcharinfo: fatal error ! player not attached!
sader1992 replied to DEsMOn's question in Scripting Support
add if(playerattached()) before announce "It seems that "+strcharinfo(0)+" has ended the Invasion!",bc_all; like this if(playerattached()) announce "It seems that "+strcharinfo(0)+" has ended the Invasion!",bc_all; or just remove announce "It seems that "+strcharinfo(0)+" has ended the Invasion!",bc_all; because as I see there is no place calling the OnStop event while a character is attached. -
you can , just put it out of the script (same as the other functions in the Global_Functions file) change function <name> { to be function script <name> { now you can reuse it without adding it to every script you make
-
Utility: All In One - Random Options Script
sader1992 replied to sader1992's topic in Utility Script Releases
The groups/ids are per npc , you can use the same item in a different npc copy however you cannot use the same item in the same npc in a different group. also i need more information about when this happen to you , at any step of the npc ? the image you provided the next line is just select , so I don't think this where you are getting the issue -
-
+(gettimetick(1)/60)-RandomQuestTime+ to +((gettimetick(1)/60)-RandomQuestTime)+
-
remove the ,bc_area (and ofc ,BC_AREA )
-
right you have an old emulator ok follow this "in order" https://github.com/rathena/rathena/commit/151c8476afb3adf7901bf2efc66086edc25a0d79 https://github.com/rathena/rathena/commit/500cfdc41fd64a9e5d84c6479c072cc56003854e https://github.com/rathena/rathena/commit/9cba66c22eed86a95c24a3066404ac9fa037520c you can just apply the inarray without the countinarray
-
if this not the result that you have seen in the official server , then the files have a problem/not correct or the sprite is intended to be empty (so you don't see it when you wear it) however it give a effect something like how Costume Dancing Fallen Sakura (Item ID# 20285) works
-
https://github.com/rathena/rathena/blob/181bc0e856a814000fbff6f886a5e2b364ce42e0/src/map/script.cpp#L6611 https://github.com/rathena/rathena/blob/181bc0e856a814000fbff6f886a5e2b364ce42e0/src/map/script.cpp#L25773
-
try this cons_of_poison.zip
-
-
I feel like you messed up the lue files in the grf , make sure you have only one file where everything is correctly read
-
Instances command for creating a new dungeon.
sader1992 replied to rokimoki's question in Scripting Support
create a timer , something like this OnInstanceInit://Runs once the instance is created. 'map_gld_dun01$ = instance_mapname("gld_dun01");//save this map name inside the instance 'npc_instance_main_body$ = instance_npcname(strnpcinfo(3));//save this npc name inside the instance monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled"); initnpctimer('npc_instance_main_body$); stopnpctimer('npc_instance_main_body$); end; OnPoringKilled: startnpctimer('npc_instance_main_body$); end; OnTimer600000://after 10 minute monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled"); setnpctimer(0,'npc_instance_main_body$); stopnpctimer('npc_instance_main_body$); end; or maybe put a sleep delay OnInstanceInit://Runs once the instance is created. 'map_gld_dun01$ = instance_mapname("gld_dun01");//save this map name inside the instance 'npc_instance_main_body$ = instance_npcname(strnpcinfo(3));//save this npc name inside the instance monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled"); end; OnPoringKilled: detachrid;//de attach the player from the event. sleep(600000);//sleep for 10 minutes monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled"); end; -
OnInit: bindatcmd "reset_count",strnpcinfo(3) + "::OnAtcommand"; end; OnAtcommand: mes "Reset Count: " + RESET_COUNT; end;
-
close2 doesn't detach the player , use close or end for the reset times , you are already saving that in RESET_COUNT so you can do something like mes "Reset Count: " + RESET_COUNT;
-
Instances command for creating a new dungeon.
sader1992 replied to rokimoki's question in Scripting Support
You need to create the instance body in a new npc with the instance map you can check the instances commands in https://github.com/rathena/rathena/blob/0aa5e93397d3ddfe7a559747b09c16b055da8b24/doc/script_commands.txt#L9248 and instances events in https://github.com/rathena/rathena/blob/0aa5e93397d3ddfe7a559747b09c16b055da8b24/doc/script_commands.txt#L903 so for example you want to spawn 1 poring when the instance starts and respawn it again everytime id die would be like gld_dun01,0,0,0 script #instance_main_body 444,{ end; OnInstanceInit://Runs once the instance is created. 'instance_id = instance_id();//save the instance id 'map_gld_dun01$ = instance_mapname("gld_dun01");//save this map name inside the instance 'npc_instance_main_body$ = instance_npcname(strnpcinfo(3));//save this npc name inside the instance //^ 'var is instance variable , you can call it from any script in that instance. //spawn the monster with a death event monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled"); end; OnPoringKilled: //announce that the poring is killed inside all the instance's maps instance_announce('instance_id,"The poring is killed!",0); //spawn the monster again after it's dead. monster('map_gld_dun01$,32,36,"--en--",1002,1,'npc_instance_main_body$ + "::OnPoringKilled"); end; } and to destroy the instance from outside you need to provide the instance id this should work change instance_destroy; to instance_destroy(instance_id(IM_PARTY)); ^this will destroy the party instance that hooked to the player (it's not a good idea to do that without a lot of other checks like party leader , or the instance is the instance you want to destroy not another instance etc) -
How to make other Token if Siegfried work??
sader1992 replied to Eross's question in General Support