-
Posts
43 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Schrwaizer
-
I can almost see the 999/800 expansion... Gravity is really running out of ideas. I guess that there is about 90% of chance of a ton of formulas about to be changed. But those new skills seems to be really nice. I'm anxious to take a look at 'em. :3
-
I guess it is supposed to show those buttons after doing what you've done... Have you tested it in-game?
-
@@Capuche I've started scripting it just like this suggestion of yours, but I've changed it to AttachRid 'cause of the array size limit...
-
O'right, I'll edit it to loop the quantity of existent accounts ASAP. ><
-
Basically: - scrip PmThisScript -1,{ OnWhisperGlobal: if(getgroupid != 99) end; if([email protected]$) { dispbottom "Be sure to tell me the ID of the item you want to prize all the online characters."; dispbottom "[PM to npc:PmThisScript] : <item_id>#<item_quantity>"; dispbottom "Example:"; dispbottom "npc:PmThisScript | 999#10"; dispbottom "This will give 10 "+getitemname(999)+" to all online characters."; end; } if( ! ([email protected]_this_id = atoi(@whispervar0$)) || ! ([email protected]_this_quantity = atoi(@whispervar1$) || ! getitemname([email protected]_this_id) ) { dispbottom "The given ID couldn't be processed."; dispbottom "Be sure to use only numeric values and checked item IDs."; end; } [email protected]_to = getcharid(3); // After-checking, let's do the dirty job! query_sql("SELECT `account_id` FROM `login` DESC LIMIT 0,1", [email protected]); for( [email protected] = 2000000; [email protected] < [email protected][0]; [email protected]++) { if( isloggedin([email protected]) ) { attachrid([email protected]); getitem [email protected]_this_id, [email protected]_this_quantity; } } if( ! attachrid([email protected]_to) ) { debugmes "The Administrator couldn't be contacted through the ACCOUNT_ID["[email protected]_to+"]!"; end; } dispbottom [email protected]_this_quantity+" "+getitemname([email protected]_this_id)+" had been successfully given to all online characters!"; end;I hadn't tested it, be sure to tell me if it doesn't work or if you want a modification on [email protected]: Script fixed accordingly @@Capuche loop-warning. Thank him! Also removed unnecessary detachrid, as the rid is automatically detached with a new instance of the attachrid command. -- yet not tested --
-
Please, post log-server and char-server screenshots. It is not easy to tell which problem is happening with the actual given information.
-
Which rAthena revision are you using? bMatk was implemented somewhat recently, and it was absent until so.
-
If you want it to be triggered when the player log in a map, use this: - /tab/ script /tab/ item_checker /tab/ -1,{ OnPcLoadMapEvent: if(strcharinfo(3) == "prontera" && countitem(7227) ) { warp "Save",0,0; } end; } prontera /tab/ mapflag /tab/ loadevent You can just replace "common npc header" with your npc header, it has anything special on it. Also, if you will still use the previous script, remove the "!" before "countitem"... it shouldn't be there. Ask me if it don't work.
-
Ooh, I just had misunderstanding... just replace the getitem command to warp command, like this: common npc header,{ set [email protected]_item_id, <here>; if(!countitem([email protected]_item_id)) { warp "Save",0,0; } end; }
-
common npc header,{ set [email protected]_item_id, <here>; set [email protected]_item_qt, <here>; if(!countitem([email protected]_item_id)) { getitem [email protected]_item_id, [email protected]_item_qt; } end; } This will work, but if the player stores the item, it can get more. If you want to change this, tell me.
-
I see... so, forget that. I thought it would be treated like a normal NPC. xD
-
I guess it needs Ontouch... because if the players clicks the portal, the effects will trigger. x_x I don't think that it is the point of a portal anw, just for semantic reasons. So, you can just add this to Annie's awesome script: prontera,156,172,1 script portal1 45,2,2,{ end; // Do nothing when the player clicks OnTouch: // Execute script when the player approaches switch ( rand(3) ) { default: getitem 606,10; break; case 1: getitem 608,20; break; case 2: getitem 607,20; } warp "Save", 0,0; end; } @edit: fixed typo at my bbcode
-
You're probably using incompatible lua files related to your hexed.
-
Why don't you use warp "SavePoint",0,0; Instead of and atcommand?
-
You can configure it on db/item_stack.txt, there's no need of script to this task.
-
Topic "Solved", I'm supporting Donkeyg through IM.
-
Don't bump your posts so early! Also, this is Scripting Support Area. Refer yourself to Installation Support.
-
Download the last revision and reconfigure it all over again.
-
NPC do /dice and whatever the amount is. player gets amount.
Schrwaizer replied to Currently's question in Script Requests
Have you asked him the result the dice emoticon displayed? I've tested this script with some friends couple WoEs and it turned out to be flawless. @edit: Oh, sorry! It's really permitting only one chance, I completely forgot this! Change the following parts in the script: This: mes [email protected]$+"\rLet's roll!"; close2; sleep2 1000; set @rdice, rand(1,6); setarray [email protected][1],58,59,60,61,62,63; emotion [email protected][@rdice]; sleep2 2000; mes [email protected]$+"\rHere it is!"; getitem [email protected],@rdice; set .hasget, 1; close; Into this: mes [email protected]$+"\rLet's roll!"; close2; sleep2 1000; set @rdice, rand(1,6); setarray [email protected][1],58,59,60,61,62,63; emotion [email protected][@rdice]; sleep2 2000; getitem [email protected],@rdice; set .hasget, 1; mes [email protected]$+"\rHere it is!\rLet's roll once again!"; close2; set @rdice, rand(1,6); sleep2 1000; mes [email protected]$+"\rHere it is!"; getitem [email protected],@rdice; set .hasget, 2; close; -
NPC do /dice and whatever the amount is. player gets amount.
Schrwaizer replied to Currently's question in Script Requests
Uh-oh! I just read the error you said from your map-serv! Another NPC have bugs, and you'll probably get an error with it later. Do you have it's name from map-server debug? -
Since bMatk was reimplemented in r16981, you don't have it, as I thought. You got three choices: • Update your revision to 16981 or the lastest; • Get the trac diff and implement bMatk at your own risk; • Use bMatkRate
-
NPC do /dice and whatever the amount is. player gets amount.
Schrwaizer replied to Currently's question in Script Requests
Disabled when logged and when WoE Starts, but it is enabled when WoE ends. -
NPC do /dice and whatever the amount is. player gets amount.
Schrwaizer replied to Currently's question in Script Requests
Here it is! prontera,150,150,6 script WoE Prize 403,{ set [email protected]$, "[WoE Prize]"; // NPC name set [email protected], 13825; // Prize ID set [email protected], getcharid(2); // Character's GuildID set [email protected]$, strcharinfo(2); // Character's GuildNAME set [email protected]$, getguildmaster([email protected]); // Character's GuildMasterName set [email protected], getcastledata("your castle here",1); // ID of the guild castle owner if( .hasget ) { mes [email protected]$+"\rThe prize has already been taken!"; close; } if( [email protected] != [email protected] ) { mes [email protected]$+"\rYour guild isn't this castle owner!"; next; mes [email protected]$+"\rOnly the Guildmaster of this castle owner guild can have access to the prize!"; close; } if( strcharinfo(0) != [email protected]$ ) { mes [email protected]$+"\rYou're not the "[email protected]$+"'s Guildmaster."; next; mes [email protected]$+"\rOnly the Guild Master have access to the Prize!"; close; } mes [email protected]$+"\rHello, "[email protected]$+" Guildmaster!"; mes "I'm the WoE Prizer NPC, it looks like that you haver won this last WoE, huh!"; next; mes [email protected]$+"\rAs the owner of this castle, you have the bonification of getting a prize."; next; mes [email protected]$+"\rI'll do you a sortition with /dice..."; next; mes [email protected]$+"\rDon't be afraid, you don't have one-to-six chance to win!"; next; mes [email protected]$+"\rYou will be rewarded wherever result comes out, the dice is just to define the quantity of it!"; next; mes [email protected]$+"\rMay I start, then?"; next; mes [email protected]$+"\rLet's roll!"; close2; sleep2 1000; set @rdice, rand(1,6); setarray [email protected][1],58,59,60,61,62,63; emotion [email protected][@rdice]; sleep2 2000; mes [email protected]$+"\rHere it is!"; getitem [email protected],@rdice; set .hasget, 1; close; OnAgitEnd: enablenpc strnpcinfo(3); end; OnAgitStart: OnInit: disablenpc strnpcinfo(3); set .hasget, 0; end; } I apologize my lateness, yesterday was reveillon party. If there's any error with the script, call me. Don't forget to change it's coordinates and "your castle here" (I used prtg_cas03 to test it). -
bMatk was deprecated approximately four years ago, since eA (https://trac.paradox...changeset/13809 | https://trac.paradox...changeset/13809 | https://trac.paradox...changeset/10032). Reimplemented in rA 16981, as said by Euphy. If his revision as being rA is under rev 16981, this is most probably the problem, because he hasn't told us his emulator and it's revision...