Jump to content

Patskie

Members
  • Posts

    1702
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Patskie

  1. whisper npc:guild_announce and write your message that you want to broadcast
  2. Try this i revised 2essy script but like what i've said there's an issue if player name exceeds 23 characters : - script gmrenamer -,{ OnPCLoginEvent: set .nickname$,strcharinfo(0); setarray .banned$[0],"GM","[GM]","Admin","G M","[Admin]","A dmin"; set .bannedamt,getarraysize(.banned$); if( getgmlevel() ) { if( compare(.nickname$,"[GM] ") ) { query_sql("UPDATE `char` SET name='[GM] "+.nickname$+"' WHERE name='"+.nickname$+"'"); mes "You have to relog to update your nickname to have ^FF0000[GM]^000000 tag"; } } else { for ( set .a, 0; .a < .bannedamt; set .a, .a + 1 ) { if( !compare(.nickname$,.banned$[.a]) ) { atcommand "@block "+.nickname$+""; } } } end; }
  3. An issue with updating name through SQL is that when player name exceeds 23 character it will be deleted instantly so if you would not mind [member=2essy2killu] you can add a check on your script ( getstrlen ) that if player name + GM tag > 23 then the npc should ask player somehow if he or she wants to change his or her name. If not, then don't execute the update command. Otherwise if it is < 23 then there should be no problem
  4. - script GM -1,{ OnPCLoginEvent: if ( !getgmlevel() ) end; atcommand "@fakename [GM] " +strcharinfo(0); end; }
  5. This have been made by @Capuche recently : - script guild_announce -1,{ OnWhisperGlobal: .@guild_id = getcharid(2); if ( getguildmasterid( .@guild_id ) != getcharid(0) ) end; if ( @accountid_member == 0 ) @total_guild_member = query_sql( "select `account_id`, `char_id` from `guild_member` where `guild_id` = "+ .@guild_id, @accountid_member, @charid_member ); .@mes$ = @whispervar0$; .@name$ = strcharinfo(0); while( .@i < @total_guild_member ) { if ( isloggedin( @accountid_member[.@i], @charid_member[.@i] ) ) { attachrid @accountid_member[.@i]; announce "[ "+ .@name$ +" ]: "+ .@mes$, bc_self; } .@i++; } }
  6. Instead of creating either script or source why not put your array content in your data/manner.txt?
  7. Try : - script Avoid -1,{ OnExecute: for ( .@i = 0; .@i < .size; .@i++ ) if ( strcharinfo(3) == .map$[.@i] ) end; OnInit: bindatcmd("mobsearch", strnpcinfo(3)+ "::OnExecute"); setarray .map$, "payon","prontera"; .size = getarraysize(.map$); end; }
  8. How did the problem appear?
  9. I think it's included when you download your kRO. Maybe you can set this : trunk/conf/battle/client.conf // Valid range of dyes and styles on the client. min_hair_style: 0 max_hair_style: 27 min_hair_color: 0 max_hair_color: 8 min_cloth_color: 0 max_cloth_color: 4
  10. trunk/conf/battle/drops.conf // Make broadcast ** Player1 won Pupa's Pupa Card (chance 0.01%) *** // This can be set to any value between 0~10000. // Note: It also announces STEAL skill usage with rare items // 0 = don't show announces at all // 1 = show announces for 0.01% drop chance items // 333 = show announces for 3.33% or lower drop chance items // 10000 = show announces for all items rare_drop_announce: 0
  11. If you need a trusted developer you can check my paid services in my signature. Hope to work with you soon!
  12. You can reset equipment of a character when he or she is not online
  13. Try : 1538,Spike_,Spike,4,,10,700,85,,1,2,0x00008110,7,2,2,4,40,1,8,{ bonus bCritical,40; if( BaseJob == Job_Priest ) { bonus bDefRate,-67; bonus bDef2Rate,-67; } },{},{}
  14. It will not work if you copy them all (literally). Try replacing "--" to "//"
  15. Then you should stay on the same thread until it works lol. Many people will answer you and that is for sure . Creating multiple threads with same topic or content will make other people to start being annoyed and that's not good brother
  16. http://rathena.org/board/topic/68468-utility-multi-currency-shop/
  17. Or execute this on your database : TRUNCATE TABLE guild_castle;
  18. Same as coupon npc made by @tr0n. You can check his work here http://rathena.org/board/topic/63332-coupon-npc-112/ Download the script he make and change : getitem .@available_item[@i],.@available_amount[@i]; to : set #CASHPOINTS, #CASHPOINTS + <desired amount>;
  19. I think you can't invite a player with fake name on a party/guild. If that is the case, then you need to do script something like change the character name ( you need to update your char table in database ) to be able to invite him/her on a party/guild. But by doing so, you must take consider that rAthena limits character name up to 23 characters. If you will make a script make sure that you get first the length of the name of player and if you add it up with the donator tag then it should be < 23. Otherwise that character will be deleted
  20. I think you already answer your question . You cannot connect to your server using your client without having clientinfo.xml on your data folder. Here is the content of clientinfo.xml : <?xml version="1.0" encoding="euc-kr" ?> <clientinfo> <desc>Ragnarok Client Information</desc> <servicetype>korea</servicetype> <servertype>sakray</servertype> <hideaccountlist /> <passwordencrypt /> <passwordencrypt2 /> <extendedslot /> <readfolder /> <connection> <display>SERVER NAME HERE</display> <desc>Ragnarok Online</desc> <balloon>this is a tool tip</balloon> <address>SERVER IP HERE</address> <port>6900</port> <version>20</version> <langtype>1</langtype> <registrationweb>REGISTRATION URL HERE</registrationweb> <yellow> <admin>2000001</admin> <admin>2000002</admin> <admin>2000003</admin> </yellow> <loading> <image>loading00.jpg</image> <image>loading01.jpg</image> <image>loading02.jpg</image> <image>loading03.jpg</image> <image>loading04.jpg</image> <image>loading05.jpg</image> <image>loading06.jpg</image> <image>loading07.jpg</image> <image>loading08.jpg</image> <image>loading09.jpg</image> <image>loading10.jpg</image> </loading> </connection> </clientinfo> Reference : http://rathena.org/wiki/Clientinfo.xml
  21. Patskie

    NPC Refund

    How about items which are dropped by monsters? They can refund it also on the NPC which for me is not appropriate since we are talking about PODS ( some sort of money, donation etc.. ) If that is the case then there is no need for me to donate to his server
  22. You call function Crafting_Tool ( callfunc "Crafting_Tool"; ) but you have function name Crafting Tool which is not the same ( function script Crafting Tool ) function script Crafting_Tool { dispbottom "" + strcharinfo(0) + " : Seems that the Crafting Tool is working...." set .@menu, select ("Crafting Tool:Close"); if (.@menu == 1); set .@r, rand(10); if( .@r < 10 ) specialeffect2 306; specialeffect2 183; delitem 7849,10; delitem 7758,10; if( .@r == 3 ) getitem 27301,1; delitem 7849,10; delitem 7758,10; specialeffect2 305; specialeffect2 113; close; if (.@menu == 2); close; }
  23. Is there any error in the console? If so, post error. If none, then you might not have PCRE?
  24. try this : - script restricted_manner -1,{ OnInit: setarray .@bad_word$, "tangina", "t@ngin@", "t@ng1ng@", "tanga", "t@ng@" , "t@nga", "bobo" , "bob0"; set .@size_b, getarraysize( .@bad_word$ ); for( set .@i, 0; .@i < .@size_b; set .@i, .@i + 1 ) defpattern 1, "([^:]+):.*\\s"+ .@bad_word$[.@i] +".$", "warning"; activatepset 1; end; warning: set @warning, @warning + 1; if ( @warning == 3 ) { set @warning, 0; deltimer strnpcinfo(0) +"::OnDelay"; atcommand "@mute 5 "+ strcharinfo(0); } else { deltimer strnpcinfo(0) +"::OnDelay"; addtimer 300000, strnpcinfo(0) +"::OnDelay"; message strcharinfo(0), "Be careful with your language... Warning "+ @warning +"/3"; } end; OnDelay: set @warning, 3; end; }
×
×
  • Create New...