-
Posts
2,407 -
Joined
-
Last visited
-
Days Won
49
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Capuche
-
For NPCs you can also use *npctalk "<message>"{,"<NPC name>"}; https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L6108 izlude,75,100,3 script npc 1 4_DR_SOLDIER,{ unittalk getnpcid(0,"npc 2"), "NPC 2 is talking"; end; } izlude,72,100,3 script npc 2 4_DR_SOLDIER,{ npctalk "npc 1 is talking", "npc 1"; end; }
-
Thanks for the digest @nanakiwurtz
-
unitexist on idAthena = unitexists on rAthena. Take the one on our PR if you don't want to be bothered by script conversion. https://github.com/rathena/rathena/pull/1889
-
setarray [email protected]_to_remove[0], 2321, 2403; [email protected]_item_to_remove = getarraysize( [email protected]_to_remove ); for ( [email protected] = 0; [email protected] < [email protected]_item_to_remove; [email protected]++ ) { [email protected] = countitem( [email protected]_to_remove[[email protected]] ); [email protected]_item += [email protected]; delitem [email protected]_to_remove[[email protected]], [email protected]; } getitem 501, [email protected]_item; What do you mean?
-
I'm already following the news on your blog @Secrets added some infos about hugel monster race in https://github.com/rathena/rathena/issues/1895
-
I like the UI smelting update <3 Mechanic job update ? Anyway thanks for the infos @Ziu
-
Please read the docs ! setunitdata will remove the previous mode and set your mode. Sometimes you need to keep the original mode. It will work.
-
We didn't push the mode to constant yet. Don't forget to retrieve the original mode of your mob and add it. A sample : monster "prontera",0,0,"Quest Poring",1002,1; [email protected]_unique_id = [email protected][0]; getunitdata [email protected]_unique_id, [email protected]; setunitdata [email protected]_unique_id, UMOB_MODE, ( [email protected][UMOB_MODE] | 0x0000004 );
-
Did you update your branch ? https://github.com/rathena/rathena/pull/1825/commits/d2f8852a56f6e2510b9cd0b5f9afac36ec6c6063
-
Use *setd "<variable name>",<value>{,<char_id>}; *getd("<variable name>") for N-dimensional array
-
Official Wave Mode Forest instance
Capuche replied to MasterOfMuppets's topic in Game, Event, Quest Script Releases
Hmm interesting. Are you planning to script the wave mode sky later ? -
help Warnings in Setunitdata - Error in finding object with given game ID 0!
Capuche replied to fictionx's question in Scripting Support
*monster "<map name>",<x>,<y>,"<name to show>",<mob id>,<amount>{,"<event label>",<size>,<ai>}; *areamonster "<map name>",<x1>,<y1>,<x2>,<y2>,"<name to show>",<mob id>,<amount>{,"<event label>",<size>,<ai>}; ... Returned value is an array with the game ID of the spawned monster(s) depending on the amount spawned. Array is stored in [email protected][]. What does that mean ? For example your synthax is wrong in 'TNM_TRAP = monster(instance_mapname("[email protected]"),1,1,"",2960,1); setunitdata 'TNM_TRAP, 29, 1; You need to replace it by monster(instance_mapname("[email protected]"),1,1,"",2960,1); 'TNM_TRAP = [email protected][0]; setunitdata 'TNM_TRAP, 29, 1; -
https://github.com/rathena/rathena/blob/master/npc/custom/jobmaster.txt#L300
-
Header : //= NOTE: Requires SQL mob database.
-
1/ if ([email protected] == 0) {// <-- condition == 1 => script continue (re-enchant) if ([email protected] == 1) {// <-- max is always == 0 in your script mes "[Hugin's Magic Master]"; //Custom text mes "Your shoes have reached the maximum option to enchant."; mes "Please bring me a new one if you want me to enchant again."; close; } else { 2/ set [email protected],[email protected][5];// [email protected][5] unset in your Hugin's Craftsman NPC @@ -110,8 +110,7 @@ glast_01,212,273,4 script Hugin's Magic Master 66, [email protected] == [email protected]h[3] || [email protected] == [email protected][4] || [email protected] == [email protected][5]) { set [email protected],getequipcardid([email protected],2); set [email protected],[email protected]_cost[4]; - if ([email protected] == 0) { - if ([email protected] == 1) { + if ([email protected] > 0) { mes "[Hugin's Magic Master]"; //Custom text mes "Your shoes have reached the maximum option to enchant."; mes "Please bring me a new one if you want me to enchant again."; @@ -118,7 +117,7 @@ glast_01,212,273,4 script Hugin's Magic Master 66, close; } else { //3rd slot random enchanting - switch ([email protected]) { + switch ([email protected]) { case 4822: //Fighting_Spirit7 case 4835: //Expert_Archer4 case 4826: //Spell5 @@ -125,7 +124,6 @@ glast_01,212,273,4 script Hugin's Magic Master 66, case 4862: //MHP2 case 4881: //DelayafterAttack4Lv case 4755: //Luck6 - set [email protected],1; set [email protected],callfunc("F_Rand",4875,4876,4877,4878,4879,4880); //Bear's_Power,Runaway_Magic,Speed_Of_Light,Muscle_Fool,Hawkeye,Lucky_Day mes "[Hugin's Magic Master]"; //Custom text mes "Seems you already completed the best upgrade option in your 4th slot."; @@ -154,11 +152,13 @@ glast_01,212,273,4 script Hugin's Magic Master 66, mes "Thank you for believing in me."; getitem2 [email protected]_id,1,1,[email protected]_refine,0,0,0,[email protected],[email protected]; close; - } } } - } + else { + mes "An unknown error has occurred."; + close; + } //4th slot 2nd try enchanting if ([email protected] == [email protected][0]) set [email protected],[email protected][0]; @@ -289,7 +289,7 @@ glast_01,210,270,8 script Hugin's Craftsman 726,{ mes "You must bring ^0000FF5 Temporal Crystal items^000000. Nothing is free you know..."; close; } - set [email protected],rand(100,100); + set [email protected],rand(100); if ([email protected] <= 80) { //Custom rates mes "[Hugin's Craftsman]"; mes "Arrggg, we failed. Better luck next time."; @@ -301,10 +301,10 @@ glast_01,210,270,8 script Hugin's Craftsman 726,{ // Magic Copy - set [email protected],EQI_SHOES; - set [email protected]_refine,getequiprefinerycnt([email protected]); - set [email protected],[email protected][5]; - set [email protected],getequipcardid([email protected],3); + set [email protected],EQI_SHOES; + set [email protected]_refine,getequiprefinerycnt([email protected]); + set [email protected],getequipcardid([email protected],2); + set [email protected],getequipcardid([email protected],3); mes "[Hugin's Craftsman]"; //Custom text
-
Typo : isbeginquest must be isbegin_quest
-
Easy to read. Well done ! Note: rathena doesn't like to add string until fd482381f62fccd06460c204aa32a5325542bed2 if I remember. Also why did you used close2 at the end of the file ? mes "All of your records for this quest have been deleted."; close2;
-
Hmm we need to make a sample.
-
What about setunitdata <GID>,UMOB_DMGIMMUNE,1;
-
Did you added the event under if( md->npc_event[0] && !md->state.npc_killmonster ) { (mobs with event attached) ?
-
Check the docs for startnpctimer
-
No crash and I got the same game ID in all cases. Your version is up to date ?
-
Perhaps you spawn several monsters ? Check your [email protected] array. It should be pc_setglobalreg(mvp_sd, add_str("killedgid"), md->bl.id);