Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. UPDATE `inventory` SET `card0` = 0 WHERE `card0` = 4001; UPDATE `inventory` SET `card1` = 0 WHERE `card1` = 4001; UPDATE `inventory` SET `card2` = 0 WHERE `card2` = 4001; UPDATE `inventory` SET `card3` = 0 WHERE `card3` = 4001; try this.
  2. wait wait wait.... you guys are running out of topic.... ???? i think topic starter looking for this ??? prontera,155,181,4 script Sample 757,{ mes "Bring me "+getitemname( .card_id ); if( countitem( .card_id ) ){ if( select( "Exchange to 10,000 zeny ?","Close" ) == 1 ){ delitem .card_id,1; Zeny += 10000; mes "Gained 10,000 zeny for exchanging 1 "+getitemname( .card_id ); } } close; OnInit: OnMinute00: .card_id = rand( 4001,4555 ); end; }
  3. yes ... start the event every 3 hour .... you can also use OnClock0000: OnClock0300: OnClock0600: ... ... ... OnClock2100:
  4. doc/item_bonus.txt bonus bMaxHPrate,getrefine(); bonus bMaxSPrate,getrefine();
  5. any customization you did to your "Reset Stat" ?? normally a reset npc give the status point based on your db/re/statpoint.txt
  6. OnMinute20: change to OnMinute20: if( gettime(3) % 3 != 0 ) end;
  7. doc/script_commands.txt#L3535 *addrid(<type>{,<flag>{,<parameters>}}); This command will attach other RIDs to the current script without detaching the invoking RID. It returns 1 if successful and 0 upon failure. <type> determines what RIDs are attached: 0: All players in the server. 1: All players in the map of the invoking player, or the invoking NPC if no player is attached. 2: Party members of a specified party ID. [ Parameters: <party id> ] 3: Guild members of a specified guild ID. [ Parameters: <guild id> ] 4: All players in a specified area of the map of the invoking player (or NPC). [ Parameters: <x0>,<y0>,<x1>,<y1> ] Account ID: The specified account ID. <flag> can prevent certain players from being attached: 0: Players are always attached. (default) 1: Players currently running another script will not be attached.
  8. if( getcharid(0) == getguildmasterid( getcastledata( "prtg_cas01",1 ) ) ){ // get item .... } end; you dont have to run sql command to retrieve the guild id ...
  9. OnPCDieEvent: if( isequipped( 5353 ) ){ recovery 0; } end; you can do like this ......
  10. OnPCLoadMapEvent: while( strcharinfo(3) == "mapname" ){ unequip EQI_HAND_L; unequip EQI_HAND_R; sleep2 5000; } end; FCP status can be bypass if they enter the map without wearing any equipment/weapons ... this kind of request should be done through source mod ....
  11. OnNPCKillEvent: .@party = getcharid(1); .@map$ = strcharinfo(3); if( .@party ){ addrid( 2,0,.@party ); if( HP > 1 && strcharinfo(3) == .@map$ ){ #CASHPOINTS += 20; } } end;
  12. you dont really have to go through the SQL database and retrieve there information there... we got getcharid ... if( !Freebies && getcharid(3) > 2000735 ){
  13. jasc already show you the solution ... Does this script affects the @at venders? yes....everyone who online at the moment will get it .... if you want to avoid these vendor..just use checkvending to check if they are vending...or not..
  14. you dont need to touch source part .....
  15. like this ? setarray .@items[0],15000,15001,15002,15003; .@item_size = getarraysize( .@items ); for( .@i = 0; .@i < .@item_size; .@i++ ){ if( !countitem( .@items[.@i] ) ){ dispbottom "You dont have "+getitemname( .@items[.@i] ); end; }else if( !isequipped( .@items[.@i] ) ){ dispbottom "You didnt equip with "+getitemname( .@items[.@i] ); end; } }
  16. only 1 player can use the gstorage at one time inside the src mod variable i guess..
  17. prontera,155,181,5 script Sample 757,{ end; OnInit: npcspeed 200; while( 1 ){ npcwalkto rand( 150,160 ),rand( 175,185 ); sleep 15000; } end; } prontera,155,181,5 script Sample 757,{ if( .location ) end; set .location,select( implode( .map_name$,":" ) ); close2; while( .location ){ npcwalkto .npc_x[.location-1],.npc_y[.location-1]; sleep 5000; getmapxy( .@npc_map$,.@npc_x,.@npc_y,1 ); if( .@npc_x == .coordinate_y[.location-1] && .@npc_y == .coordinate_y[.location-1] ){ npctalk "You reached.."; set .location,0; sleep 3000; break; } } movenpc strnpcinfo(0),.npc_x,.npc_y; end; OnInit: npcspeed 200; getmapxy( .npc_map$,.npc_x,.npc_y,1 ); setarray .map_name$,"Location 1","Location 2","Location 3"; setarray .coordinate_x,150,160,170; setarray .coordinate_y,174,180,160; end; }
  18. set EventPoints,EventPoints + 5;
  19. you can try this https://rathena.org/board/index.php?/files/file/2962-%7B?%7D/ or if (getequiprefinerycnt(.@s) > 10 || getequiprefinerycnt(.@s) < 1 ){ mes "Refine must be between 1 ~ 10; close; }
  20. edit the colour part in announce
  21. create a custom npc script... *callshop "<name>",<option>; These are a series of commands used to create dynamic shops. The 'callshop' function calls an invisible shop (view -1) as if the player clicked on it. The options are: 0 = The normal window (buy, sell and cancel) 1 = The buy window 2 = The sell window
  22. currently it only consume after they "selected" to use it ... if( countitem( .@arg[9] ) ) if( select( "Use ^0055FF"+getitemname( .@arg[9] )+"^000000 to increase Refine Rate","Continue" ) == 1 ){ .@success_rate += .@arg[8]; delitem .@arg[9],1; } change to if( countitem( .@arg[9] ) ){ .@success_rate += .@arg[8]; delitem .@arg[9],1; }
  23. http://rathena.sourceforge.net/tools/diff_patcher.php?client=2010-07-30aRagexeRE
×
×
  • Create New...