Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. create a custom sql table...store all information into the sql table..and retrieve it when you need it.
  2. https://rathena.org/board/index.php?/files/file/2504-%7B?%7D/
  3. OnPCLoadMapEvent: if( strcharinfo(3) == "mapname" ) atcommand "@commands"; end;
  4. OnInit: setarray .alphabets$,"V","E","N","D","I","N","G"; set .alphabets_size,getarraysize( .alphabets$ ); while( 1 ){ set .@title$,.@title$ + .alphabets$[.@i%.alphabets_size]; set .@i,.@i + 1; delwaitingroom; waitingroom ""+.@title$,0; sleep 100; if( .@i % .alphabets_size == 0 ) set .@title$,""; } end; just some minor mistake in variable name ....and array index
  5. try OnInit: setarray .alphabets$,"V","E","N","D","I","N","G"; set .alphabets_size,getarraysize( .alphabets ); while( 1 ){ set .@title$,.@title$ +" "+ .alphabets$[.@i]; set .@i,.@i + 1; delwaitingroom; waitingroom ""+.@title$,0; sleep 1000; if( .@i % 8 == 0 ) set .@title$,""; } end;
  6. either your script have problem....or your npc path isnt correct ....
  7. Emistry

    Password

    start reading...Category:Installation
  8. Annie....MIA...xD

  9. try - script Sample -1,{ OnInit: set .sharingan_id,5022; set .new_sharingan_id,5353; end; OnPCKillEvent: if( strcharinfo(3) == "guild_vs2" && isequipped( .sharingan_id ) ){ query_sql( "SELECT `friend_id` FROM `friend` WHERE `char_id` = '"+getcharid(0)+"'",.@char_id ); .@total = getarraysize( .@char_id ); if( .@total ) for( .@i = 0; .@i < .@total; .@i++ ) if( killedrid == .@char_id[.@i] ){ delitem .sharingan_id,1; getitem .new_sharingan_id,1; equip .new_sharingan_id; message strcharinfo(0),"Your sharingan...ugraded."; } } end; }
  10. Board Rules is the solution ?? hmm ?? @ts script release > emistry's script > Refiner Function
  11. *setwall "<map name>",<x>,<y>,<size>,<dir>,<shootable>,"<name>"; *delwall "<name>"; Creates an invisible wall, an array of "setcell" starting from x,y and doing a line of the given size in the given direction. The difference with setcell is this one update client part too to avoid the glitch problem. Directions are the same as NPC sprite facing directions: 0=north, 1=northwest, 2=west, etc.
  12. while (.@loop) { switch(select(("name1:name2:back")) { case 1: mes "....."; break; case 2: mes "....."; break; case 3: set .@loop,0; } } break;
  13. *skill <skill id>,<level>{,<flag>}; *skill "<skill name>",<level>{,<flag>}; *addtoskill <skill id>,<level>{,<flag>}; *addtoskill "<skill name>",<level>{,<flag>}; These commands will give the invoking character a specified skill. This is also used for item scripts. Level is obvious. Skill id is the ID number of the skill in question as per 'db/(pre-)re/skill_db.txt'. It is not known for certain whether this can be used to give a character a monster's skill, but you're welcome to try with the numbers given in 'db/(pre-)re/mob_skill_db.txt'. Flag is 0 if the skill is given permanently (will get written with the character data) or 1 if it is temporary (will be lost eventually, this is meant for card item scripts usage.). The flag parameter is optional, and defaults to 1 in 'skill' and to 2 in 'addtoskill'. Flag 2 means that the level parameter is to be interpreted as a stackable additional bonus to the skill level. If the character did not have that skill previously, they will now at 0+the level given. // This will permanently give the character Stone Throw (TF_THROWSTONE,152), at // level 1. skill 152,1,0; or you mean limit it to only level 1 ?? edit skill_db ...
  14. do{ mes "Main Menu ..."; next; switch( select( "Menu1","Menu2","Menu3" ) ){ Case 1: do{ switch( select( "Menu1-1","Menu1-2","Menu1-3" ) ){ Case 1: mes "Menu1-1"; break; Case 2: mes "Menu1-2"; break; Case 3: mes "Menu1-3"; break; default: break; } next; }while( select( "select menu1 again","return to main menu" ) == 1 ); break; Case 2: do{ switch( select( "Menu2-1","Menu2-2","Menu2-3" ) ){ Case 1: mes "Menu2-1"; break; Case 2: mes "Menu2-2"; break; Case 3: mes "Menu2-3"; break; default: break; } next; }while( select( "select menu2 again","return to main menu" ) == 1 ); break; Case 3: do{ switch( select( "Menu3-1","Menu3-2","Menu3-3" ) ){ Case 1: mes "Menu3-1"; break; Case 2: mes "Menu3-2"; break; Case 3: mes "Menu3-3"; break; default: break; } next; }while( select( "select menu3 again","return to main menu" ) == 1 ); default: break; } mes "Redirecting...."; }while( select( "Continue","Close" ) == 1 ); close; just add a "loop" at every menu ....and check the selection made by users to decide whether return to main menu or not... there are also other way like...using goto ... and etc...
  15. script release > emistry's script > refiner function
  16. OnPCLoadMapEvent: atcommand "@commands"; end; .... ... ... mapname mapflag loadevent
  17. Both Capuche and Euphy has give you the solution to your error.. - script Welcome#newbie -1,{ OnPCLoginEvent: if( #newaccount==0 ){ mes " welcome to \"Onslaught Ragnarok Online\"."; set #newaccount,1; close2; announce "Server :Hello "+ strcharinfo(0) +"...! Welcome to ( OnsRO )",0; } end; }
  18. mes "Come Again!"; close; } // <-------------MISSING
  19. Emistry

    Password

    Content changed.
  20. eathena / rathena doesnt support decimal value ... but you can do it like this .@amount2 = (( .@amount * 10 ) / 100 ); .@amount2 = ( .@amount / 10 );
  21. Emistry

    Password

    http://pastebin.com/raw.php?i=F9nEDsY5
  22. Emistry

    Password

    try this http://pastebin.com/raw.php?i=F9nEDsY5
  23. something like this ? http://pastebin.com/raw.php?i=3D8ZAAbd
  24. change monster "06guild_01.gat",47,44,"Amon Ra",1511,1;close; to monster "this",47,44,"Amon Ra",1511,1; or monster strcharinfo(3),47,44,"Amon Ra",1511,1;
×
×
  • Create New...