-
Posts
394 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Shakto
-
You have to do that for each hat you have. You check your headgear id with if (countitem(id_item)>0) { delitem id_item; additem new_id_item; } With a menu before to choose the new colour. And that for each hat. Or you can use a multiple currency shop npc http://rathena.org/board/files/file/2504-multi-currency-shop/
-
Use the sql table with all you coupon You have to delete the row in the script : query_sql "DELETE FROM `coupons` WHERE `code`='"[email protected]_code$+"'"; query_sql "SELECT `code`, `item_id`, `item_amount` FROM `coupons`", [email protected]_code$, [email protected]_item, [email protected]_amount; for (set @i, 0; @i < getarraysize([email protected]_code$); set @i, @i+1) { if(@[email protected]_code$[@i]) { mes "[^FF7700Coupon Jack^000000]"; mes "You get ^0000FF" + getitemname([email protected]_item[@i]) + " - " + [email protected]_amount[@i] + " ea.^000000"; getitem [email protected]_item[@i],[email protected]_amount[@i]; //announce "Coupon Jack: " + strcharinfo(0) + " got " + [email protected]_amount[@i] + getitemname([email protected]_item[@i]) + "(s).",0; close; } } And for IP verification : create an other table (code of coupon,player ip), you can have player ip by checking the login table : query_sql "SELECT `last_ip` FROM `login` WHERE `account_id` = "+getcharid(3)+"", [email protected]; You can do that for both account_id or ip, like you want And you fill the new table with a query ; INSERT INTO After you just have to check if the player already used his coupon
-
Nobody for that ? I know it's a hard script. Maybe anyone have some sample of their own script that use those function ? I think to know if a bg is finished, i can use set [email protected],getmapusers("map_of_bg"); to count the number of player in. But i have to do a script who check every 10sec that command, maybe it will use more memory than an other way ? The difficulty for me is to begin the bg with 2 party (red, blue or why not green ? where join of party is random each time) Like algorithm : if (count(partyred)>count(partyblue)&&count(partyblue)<count(partygreen)) playerjoin party blue; else ect... but how to join the official bg with the AnnieRuru patch ?
-
Do you mean all item on the floor on a map or a liste of all item that mobs drop on a map ?
-
Just make a selling npc and add all id manually ? What do you want to say by "random" ?
-
With 2012-04-10 there is a button to create a guild without any command Edit : ok space and special char doesn't work, i sugest you to use SQL on website It's complicated to do it online by npc script because the char who will create the guild have to be disconnect to make it work. If he's not, i think the link between the new guild and his char will no be create on sql.
-
There is trouble when using createbgid When the npc is loading, rathena windows say : [Error]: script error on npc/custom/bg.txt line 48 parse_line: need ';' 43 : } 44 : close; 45 : OnInit: 46 : getmapxy [email protected]$, [email protected], [email protected], 1; * 48 : createbgid 1, [email protected]$, [email protected], [email protected], ""',' ""; 49 : end; 50 : }
-
Add this at begining of your script set [email protected],5000; // Zeny required for warp if ([email protected]) { message strcharinfo(0),"Warping costs "[email protected]+" Zeny."; if (Zeny < [email protected]) end; //Warping script here set Zeny, [email protected]; // Write this BEFORE teleport }
-
Hello everyone, I searched a lot and i don't find the script that i wanted. (I installed AnnieRuru mod for setbgid) Can anyone give a sample of a script please : A NPC with a timer that everytime a bg finished, a new bg begin after 5 mins. With one queue npc to go to multiple bg (In sample : Flavius, tierra / where i can add some custom bg later) Thank you so much if anyone can do that. Scripting of battleground npc stay in shadow for me for now^^ (Sorry for my bad english if there is some errors)
-
Any news ?