Jump to content

Joseph

Members
  • Posts

    341
  • Joined

  • Last visited

Everything posted by Joseph

  1. Something like this? map,x,y,z script #Chat 100,{ end; OnInit: waitingroom "Chatroom",0; end; }
  2. Based on your mapserv, you should put a semicolon instead of coma at line 223. 2131;
  3. OnInit: while(1) { waitingroom " [ "+(($@guild$)?$@guild$:"No Guild")+" ]",0; sleep 1000; delwaitingroom; }
  4. Change warp .Map$[.@i],0,0; to warp .@Map$[.@i],0,0;
  5. Try this: - script killerwoesatu -1,{ OnPCKillEvent: getmapxy(.@map$,.@x,.@y,0); if(.@map$=="aldeg_cas01" && (gettime(4) == 3 || gettime(4) == 6 || gettime(4) == 0) && gettime(3) == 19 ) { set #CASHPOINTS,#CASHPOINTS+2; dispbottom "Kamu mendapat 2 Cash Point. Total "+#CASHPOINTS+" Cash Points."; end; } }
  6. http://upaste.me/be2f49851d13686
  7. Instead of areaannounce, you can use mapannounce mapannounce "poring_c01","Message",0; Is this what you're trying to search for? Warp all the players away from a map. *areawarp "<from map name>",<x1>,<y1>,<x2>,<y2>,"<to map name>",<x3>,<y3>; This mapflag will disable all the monster drops: // Enable Mapflag setmapflag "poring_c01",mf_nomobloot; // Disable Mapflag removemapflag "poring_c01",mf_nomobloot; Directly obtain items into players' inventory without using @autoloot. OnTCKill: set .@r, 671; // Reward setarray .@a, 1,1,2; // Amount(Random) getitem .@r, .@a[rand(getarraysize(.@a))];
  8. Haha okay here you go. if ( getstrlen(.@tmp_name$) <= 4 ) { next; mes .@n$; mes "Must have more than 4 characters."; next; set .@k, 2; }
  9. I assume the format of your tribe name: tribe_name*character_name If it is, then try this.. Add query_sql("SELECT `char_id` FROM `char` WHERE `name` REGEXP ('.*\\*"+escape_sql(.@tmp_name$)+"') OR `name`='"+escape_sql(.@tmp_name$)+"",.@cid); if ( .@cid[1] != 0 ) { next; mes .@n$; mes "I'm sorry this name has been used."; next; set .@k, 2; } After mes .@n$; mes "So.. " + .@tmp_name$ + " will be your new name?"; set .@k, select ( "Yes:No" ); EDIT: Try -.-
  10. Add this setarray .@char$, "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "{", "}", "[", "]"; for ( set .@i, 0; .@i < getarraysize(.@char$); set .@i, .@i + 1 ) { if ( compare(.@tmp_name$,.@char$[.@i]) ) { next; mes .@n$; mes "No restricted characters allowed."; set .@k, 2; break; } } After mes .@n$; mes "So.. " + .@tmp_name$ + " will be your new name?"; set .@k, select ( "Yes:No" );
  11. Owh.. Try this.. set .@tribe$[.@j], getd(".@tribe_"+(.@j+1)+"$");
  12. Yes. It will work if the replacement properly applied.
  13. Your revision? If you're using rAthena, shouldn't be a problem. Replace explode(.@tribe$,.@menu$,":"); With set .@tribe$[.@j], getd(".@tribe_"+(.@j+1)+"$");
  14. Amazing! I can help you with the mini game script, if you need.
  15. Okay, try this.. http://upaste.me/ab56490b675cbee Not tested.
  16. This will check the name length. if ( getstrlen(strcharinfo(0)) > 23 ) // 23 is the max char name length? { // Rename // ... } // Add title // ...
  17. Add if ( getgroupid() == 99 ) end; After OnRestrict: As for the ****, you can try to get support from source request section.
  18. How about @reloadscript? If still got problem, they you might wanna see this http://rathena.org/wiki/PCRE
  19. If you want the NPC to appear then change the NPC sprite, which is located at the header.
×
×
  • Create New...