Jump to content

Shakto

Members
  • Posts

    416
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Shakto

  1. Shakto

    Guild Creator

    Yes i think it's the problem
  2. Shakto

    Item Changer.

    Why ? It's a possible solution that he can use and easy to configure. If he doesn't know how to do that basic npc, to give him a complicated npc is not a gift
  3. Shakto

    Item Changer.

    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/
  4. Use the sql table with all you coupon You have to delete the row in the script : query_sql "DELETE FROM `coupons` WHERE `code`='"+@my_code$+"'"; query_sql "SELECT `code`, `item_id`, `item_amount` FROM `coupons`", .@available_code$, .@available_item, .@available_amount; for (set @i, 0; @i < getarraysize(.@available_code$); set @i, @i+1) { if(@my_code$==.@available_code$[@i]) { mes "[^FF7700Coupon Jack^000000]"; mes "You get ^0000FF" + getitemname(.@available_item[@i]) + " - " + .@available_amount[@i] + " ea.^000000"; getitem .@available_item[@i],.@available_amount[@i]; //announce "Coupon Jack: " + strcharinfo(0) + " got " + .@available_amount[@i] + getitemname(.@available_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)+"", .@IP; 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
  5. 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 .@mapcount2,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 ?
  6. Do you mean all item on the floor on a map or a liste of all item that mobs drop on a map ?
  7. Shakto

    Gamble NPC

    Just make a selling npc and add all id manually ? What do you want to say by "random" ?
  8. Shakto

    Guild Creator

    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.
  9. 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 .@map$, .@x, .@y, 1; * 48 : createbgid 1, .@map$, .@x, .@y, ""',' ""; 49 : end; 50 : }
  10. Add this at begining of your script set .@Price,5000; // Zeny required for warp if (.@Price) { message strcharinfo(0),"Warping costs "+.@Price+" Zeny."; if (Zeny < .@Price) end; //Warping script here set Zeny, Zeny-.@Price; // Write this BEFORE teleport }
  11. 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)
×
×
  • Create New...