Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. OnPCKillEvent: if( strcharinfo(3) != "your map" ) end; getnameditem 7420,rid2name( killedrid );
  2. your problem is just their savepoint isnt updated....so you just update their savepoint..
  3. http://rathena.org/board/topic/60702-kamishis-palette-services-give-your-server-fresh-colors/
  4. probably you disabled this ? npc/scripts_guild.conf#L9 // - Guild NPC Template file npc: npc/guild/agit_main.txt
  5. make sure these are correct ? <address>127.0.0.1</address> <port>3306</port> 127.0.0.1 is used for offline server only.
  6. i think its kamishi's race pallete ??
  7. OnPCKillEvent: getitem2 7420, 1, 1, 0, 0, 254, 0, killedrid & 65535, killedrid >> 16 ; not sure if this work... or try this OnPCKillEvent: getnameditem 7420,rid2name( killedrid );
  8. after they kill some poring....change their savepoint too when you warp them. *savepoint "<map name>",<x>,<y>; *save "<map name>",<x>,<y>; These commands save where the invoking character will return to upon clicking "Return to Save Point", after death and in some other cases. The two versions are equivalent. They ignore any and all mapflags, and can make a character respawn where no teleportation is otherwise possible. savepoint "place",350,75;
  9. my bad..it is missing a npc name parameter.. should be movenpc strnpcinfo(0),.@rand_x,.@rand_y;
  10. the npc event run when a player joined the chatroom .... it run independently ... no players is attached to the script when it's running. is it you trying to set / check player has a battleground or not ? you try to make the player save a variable to indicate they currently have a battleground group id attached ? if yes...then you can simply use this if( getcharid(4) ) // has battleground attached.
  11. change all compare(getarg to compare(""+getarg
  12. if( lastwarp$ == "" ){ mes "Didnt have any last warp."; }else if( getmapflag( lastwarp$,mf_town ) || getmapflag( lastwarp$,mf_gvg_castle ) ){ warp lastwarp$,lastwarpx,lastwarpy; }else{ warp lastwarp$,0,0; }
  13. if( getmapflag( lastwarp$,mf_town ) || getmapflag( lastwarp$,mf_gvg_castle ) )
  14. you can do like this if( getmapflag( lastwarp$,mf_town ) ) warp lastwarp$,lastwarpx,lastwarpy; else warp lastwarp$,0,0; make sure your town have the town mapflags. npc/mapflag/town.txt
  15. try this http://upaste.me/r/867876
  16. prontera,155,181,5 script Sample 757,{ mes "Hello"; if( select( "Enter PVP","Cancel" ) == 1 ){ warp "prontera",0,0; mapannounce "prontera",strcharinfo(0)+" entered pvp.",0; } close; } prontera mapflag nocommand
  17. Emistry

    sc_start

    you can refer this doc/item_bonus.txt
  18. - script Sample -1,{ OnPCLoadMapEvent: if( getmapflag( strcharinfo(3),mf_town ) ){ sc_end SC_EXPBOOST; sc_end SC_ITEMBOOST; @valor = 0; @bonus = 0; @valorlvl = 0; message strcharinfo(0), "Valor End " + @valor + "/ " + .maxvalor[@valorlvl] + ", " + @bonus + ", " + @valorlvl + "."; } end; } prontera mapflag loadevent
  19. for ( set .@i, 0; .@i < .size; set .@i, .@i + 1 ) { if (killedrid==getcharid(0) || strcharinfo(3) != .Map$[.@i]) end; if (lastkilled==killedrid){ should be if( killedrid == getcharid(0) ) end; for ( set .@i, 0; .@i < .size; set .@i, .@i + 1 ) { if( strcharinfo(3) == .Map$[.@i] ) if (lastkilled==killedrid){
  20. OnInit: setarray .Map$[0], "pvp_y_102", "cell_game", "pvp_n_6-5", "pvp_n_3-5"; set .size, getarraysize(.Map$); end;
  21. rAthena has changed the instances system .... http://rathena.org/board/topic/84123-r17386-instance-system-rewrite/ old instance system wont work anymore ....
  22. perhap you should read the description ??
  23. pc_status_def_rate: 50
  24. when you're trying to input something related to "STRING" .... make sure you use escape_sql inside the SQL statement.
  25. certain town might not have the "Town" mapflag ... especially custom maps .... npc/mapflag/town.txt
×
×
  • Create New...