melv0

Members
  • Content count

    182
  • Joined

  • Last visited

  • Days Won

    4

melv0 last won the day on November 25 2017

melv0 had the most liked content!

About melv0

  • Rank
    Advanced Member
  • Birthday 04/10/92

Profile Information

  • Gender
    Not Telling
  • Location:
    Indonesia
  • Interests
    Ragnarok
  • Emulator:
    Hercules

Recent Profile Visitors

1909 profile views
  1. i have script npc event tic tac toe - script 3er_2 -1,{ if ( ( .X2 && .O2 ) && ( .X2 == getcharid ( 3 ) || .O2 == getcharid ( 3 ) ) && ( ! isloggedin ( .X2, .X ) || ! isloggedin ( .O2, .O ) ) ) donpcevent "Tic Tac Toe#3z::OnResetGame"; set [email protected], atoi ( strnpcinfo ( 2 ) ); if ( ( ! [email protected]_a[[email protected]] ) && ( [email protected]_turn ) ) { if ( getcharid ( 0 ) == getvariableofnpc ( .X, "Tic Tac Toe#3z" ) ) { if ( ( [email protected]_turn % 2 ) ) { set [email protected]_a[[email protected]], 1; setnpcdisplay "Poring#"+ [email protected], [email protected]_ids[0] ; set [email protected], 1; } else dispbottom "Is not your turn!"; } if ( getcharid ( 0 ) == getvariableofnpc ( .O, "Tic Tac Toe#3z" ) ) { if ( ! ( [email protected]_turn % 2 ) ) { set [email protected]_a[[email protected]], 2; setnpcdisplay "Poring#"+ [email protected], [email protected]_ids[1] ; set [email protected], 2; } else dispbottom "Is not your turn!"; } if ( [email protected] ) { set [email protected]_turn, [email protected]_turn + 1; specialeffect 44 ; set [email protected], callsub ( CheckTic, [email protected] ); if ( [email protected] ) callsub Winner, [email protected]; else if ( [email protected]_turn >= 10 ) { if ( [email protected]_ann >= 0 ) announce "Draw game.", ( ( [email protected]_ann <= 3 ) ? [email protected]_ann : 3 ), "0x"[email protected]_ann$ ; donpcevent "Tic Tac Toe#3z::OnResetGame"; } } } end ; OnInit: /* Item1 Amount1, Item2, Amount2, {Item...}, {Amount...} ( Max items: 64 ) */ setarray [email protected]_prizes[0],607,5; // Sprites. // ID X ID O setarray [email protected]_ids[0],1582,1568; /* Announce: -1 = No announce 0 = All. 1 = Map. 2 = Area. 3 = Self. */ set [email protected]_ann,1; // Color of the announce (winner). // Default = "30bdb5" set [email protected]_ann$,"30bdb5"; end; CheckTic: setarray [email protected][0], 1, 2, 3, 1, 5, 9, 3, 5, 7, 4, 5, 6, 7, 8, 9, 1, 6, 7, 2, 5, 8, 3, 4, 9; for ( set [email protected], 0; [email protected] < getarraysize ( [email protected] ) ; set [email protected], [email protected] + 3 ) if ( [email protected]_a[[email protected][[email protected]]] == getarg ( 0 ) && [email protected]_a[[email protected][[email protected] + 1]] == getarg ( 0 ) && [email protected]_a[[email protected][[email protected] + 2]] == getarg ( 0 ) ) return getarg ( 0 ) ; return 0; Winner: for ( set [email protected], 0; [email protected] < getarraysize ( [email protected]_prizes ) ; set [email protected], [email protected] + 2 ) getitem [email protected]_prizes[[email protected]], [email protected]_prizes[[email protected] + 1]; if ( [email protected]_ann >= 0 ) announce "The player "+ getarg ( 0 ) +" ("+ strcharinfo ( 0 ) +") has won!", ( ( [email protected]_ann <= 3 ) ? [email protected]_ann : 3 ), "0x"[email protected]_ann$ ; donpcevent "Tic Tac Toe#3z::OnResetGame"; return ; } prontera,152,136,4 duplicate(3er_2) Poring#1 909 prontera,155,136,4 duplicate(3er_2) Poring#2 909 prontera,158,136,4 duplicate(3er_2) Poring#3 909 prontera,158,133,4 duplicate(3er_2) Poring#4 909 prontera,155,133,4 duplicate(3er_2) Poring#5 909 prontera,152,133,4 duplicate(3er_2) Poring#6 909 prontera,152,130,4 duplicate(3er_2) Poring#7 909 prontera,155,130,4 duplicate(3er_2) Poring#8 909 prontera,158,130,4 duplicate(3er_2) Poring#9 909 prontera,164,136,4 script Tic Tac Toe#3z 909,{ // NPC Name. set [email protected]$, "^2b86b5Tic Tac Toe^000000"; mes [email protected]$; setarray [email protected][0], .X2, .X, .O2, .O; for ( set [email protected], getarraysize ( [email protected] ) ; [email protected] < [email protected] ; set [email protected], [email protected] + 2 ) { if ( isloggedin ( [email protected][[email protected]], [email protected][[email protected] + 1] ) ) mes "Player "+ ( [email protected] / 2 + 1 ) +": "+ rid2name ( ( ( [email protected] == 0 ) ? .X2 : .O2 ) ) +"."; else { mes "Player "+ ( [email protected] / 2 + 1 ) +": There isn't."; setd ( ( [email protected] == 0 ) ? ".X2" : ".O2" ), 0; setd ( ( [email protected] == 0 ) ? ".X" : ".O" ), 0; } } switch ( select ( "Register", "^911b1bExit^000000" ) ) { case 1: if ( .X && .O ) { mes "I'm sorry, but somebody else has already register before than you."; break ; } if ( .X2 == getcharid ( 3 ) || .O2 == getcharid ( 3 ) ) { mes "You're registered already."; break ; } if ( ! .X && ! .O ) { set [email protected], rand ( 1, 2 ); setd ( ( [email protected] == 1 ) ? ".X" : ".O" ), getcharid ( 0 ); setd ( ( [email protected] == 1 ) ? ".X2" : ".O2" ), getcharid ( 3 ); } else { setd ( ( .X == 0 ) ? ".X" : ".O" ), getcharid ( 0 ); setd ( ( .X2 == 0 ) ? ".X2" : ".O2" ), getcharid ( 3 ); } if ( .X && .O ) { set [email protected]_turn, rand ( 1, 2 ); npctalk "The game can start, "+ strcharinfo ( 0 ) +" has been register!"; } mes "You're registered now, you're the "+ ( ( .X2 == getcharid ( 3 ) ) ? "Deviling" : "Angeling" ); break ; case 2: mes "Have a nice day."; break ; } close ; OnResetGame: while ( set ( [email protected], [email protected] + 1 ) < 10 ) { set [email protected]_a[[email protected]], 0; setnpcdisplay "Poring#"+ [email protected], 909 ; } set .X2, 0; set .X, 0; set .O2, 0; set .O, 0; end ; } how to make cost zeny when register somebody can help me?
  2. yes, just patch it no problem
  3. http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC
  4. you can setting on inter-server.conf and add this log: { sql_connection: { db_hostname: "127.0.0.1" db_port: 3306 db_username: "ragnarok" db_password: "ragnarok" db_database: "herculeslog" } }
  5. Script

    yeah i tink it's already imlpemented on this commit HERE
  6. question :what a emulator do you use in your PS?
  7. sir can u teach me how to play RO on linux i was try but not lucky
  8. sir, do you play RO in Linux ??
  9. update your lua to fix it
  10. any news about this??
  11. i got error on last update http://prntscr.com/ic5gdn http://prntscr.com/ic8ovg how to fix it?
  12. thx murilo foryour awasome work
  13. i think is wrong format on script mes("<NAVI>[the Academy building]<INFO>iz_ac01,100,39</INFO></NAVI>."); <<<<<< forget one coma on last koordinat try to replace with this mes("<NAVI>[the Academy building]<INFO>iz_ac01,100,39,</INFO></NAVI>.");