Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. @Dynasty @HelloKkeette set .@today,gettime(4) if( #daily_reward != .@today ){ set #daily_reward,.@today; getitem 512,1; }
  2. Emistry

    Map Name?

    try check mapnametable.txt ??
  3. is this solved ???if still got problem please show your complete conf/groups.conf
  4. What's the point of recycling team ids? i believe it's up to you... if you didnt use the bg_destroy , the previous battleground group will be saved...so you dont need to create a new battleground id using the createbgid() otherwise, the bg_kickall() seem like useless if you intend to re-create the battleground group id everytime your script run.. anyway it's still depend on how you want your script to work... O__O
  5. .@party_id = getcharid(1); .@aid = getcharid(3); if( .@party_id ){ getpartymember .@party_id,2; for( .@i = 0; .@i < $@partymembercount; .@i++ ) if( attachrid( $@partymemberaid[.@i] ) ) disguise 1002; attachrid( .@aid ); mes "You party are now disguised."; } close; use getpartymember to get the Account ID then use attachrid to attach the user, then finally use disguise
  6. announce "You all gained reward...",bc_all; addrid(0); getitem 512,1; getitem 512,2; getitem 512,3; end; addrid with 0 as parameter will attach the script to everybody~
  7. one of the example already shown inside.. prontera,155,181,5 script Sample 757,{ set .@today,atoi( gettimestr( "%Y%m%d",21 ) ); if( #daily_reward != .@today ){ set #daily_reward,.@today; getitem 512,1; getitem 512,2; getitem 512,3; mes "Gained daily reward."; }else{ mes "You already get it."; } close; } you can also make use of gettime instead of gettimestr
  8. it cant be done ...with your way.. the script is required to attach to a player when try to clear the variable since the variable is player based. althought you can try clear it from the SQL table, but this required all players to logoff before you can do so.. otherwise you can refer other daily reward that made in forum...there are plenty of them.. example http://upaste.me/241f9e
  9. hmm .. ?? isnt that those Microsoft Visual Studio are free software ??
  10. @Patskie your way...doesnt work fully....especially when the member is more than 4 .... everytime they will just stuck at this part if ($@members > 4) set .@greward,1; // even they have 25 member..still it's MORE THAN 4.. it should be something like this if( $@members >= 25 ){ set .@greward,5; set .@areward,3; }else if( $@members > 19 ){ set .@greward,4; set .@areward,2; }else if( $@members > 14 ){ set .@greward,3; set .@areward,1; }else if( $@members > 9 ){ set .@greward,2; set .@areward,2; }else if( $@members > 4 ){ set .@greward,1; set .@areward,1; } normally i would do checking for highest to lowest ....
  11. @QQfoolsorellina yes ?? @haze what preview option..hmm
  12. @Brynner change if( @ItemLists[@j] == @bought_nameid[@i] ) set @TotalCost,@TotalCost + ( @ItemCost[@j] * @bought_quantity[@i] ); to if( @ItemLists[@j] == @bought_nameid[@i] ){ set @TotalCost,@TotalCost + ( @ItemCost[@j] * @bought_quantity[@i] ); set .@item_weight,getiteminfo( @bought_nameid[@i],6 ); set .@total_item_weight,( .@item_weight * @bought_quantity[@i] ); set .@total_weight,( .@total_weight + .@total_item_weight ); } if( .@total_weight > ( MaxWeight - Weight ) ){ mes "You can take that much."; close; }
  13. you can try this http://pastebin.com/raw.php?i=T7e981KM
  14. what rainbow face...describe your problem in details...
  15. disable this src/config/secure.h#L21 /** * Optional NPC Dialog Timer * When enabled all npcs dialog will 'timeout' if user is on idle for longer than the amount of seconds allowed * - On 'timeout' the npc dialog window changes its next/menu to a 'close' button * Comment to disable the timer. **/ #define SECURE_NPCTIMEOUT
  16. this look nice..i like this... xD ** /me poke Olrox to make one for myself too ...**
  17. you can refer the guide given here http://rathena.org/board/topic/72715-unofficial-extra-status-icons/ beside....for converter case...you can simply change the sc_status to these SC_FIREWEAPON SC_WATERWEAPON SC_WINDWEAPON SC_EARTHWEAPON
  18. change langtype in your clientinfo.xml
  19. Script updated : Fixed Players get stucked problem when they hit "Cancel" button. ( thanks to Snoopy ). https://rathena.org/board/index.php?/files/file/2859-%7B?%7D/
  20. Emistry

    color code

    mes "- ^FF0000"+ getd(".@pt_"+ .@j3 +"["+ (.@i+1) +"]") +" ^0000FF"+ getitemname(getd(".@pt_"+ .@j3 +"["+ .@i +"]"))+"^000000";
  21. there are no txt based rathena .... and flux read data from SQL...so you still need to use SQL based emulator.
  22. Both Akinari and I mention what file/settings can be included inside the conf/import-tmpl are you refering to this ?? conf/import-tmpl/map_conf.txt
  23. this conf/import-tmpl/battle_conf.txt work for every single setting you set within this conf/battle folder. for db/re/item_db.txt or db/re/mob_db.txt you can simply make use of db/item_db2.txt or db/mob_db2.txt
  24. query_sql( "SELECT `accountid`, `reward_id`, `reward_amount` FROM `rewardaccountnpc` ",.@acc_id,.@reward_id,.@reward_amount ); .@size = getarraysize( .@acc_id ); for( .@i = 0; .@i < .@size; .@i++ ) set .@menu$,.@menu$ + .@acc_id[.@i] +" - " + .@reward_amount[.@i] + " x "getitemname( .@reward_id[.@i] ) + ":"; .@i = select( .@menu$ ) - 1; mes "Pick : "+.@acc_id[.@i]; mes "Reward : "+.@reward_amount[.@i] + " x "getitemname( .@reward_id[.@i] ); close;
×
×
  • Create New...