Jump to content

Yaziid91

Members
  • Posts

    16
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    France
  • Discord: yahaa4670
  • Interests
    Manga, Anime, Ragnarok online

Recent Profile Visitors

422 profile views

Yaziid91's Achievements

Santa Poring

Santa Poring (3/15)

  • Collaborator
  • First Post
  • Conversation Starter
  • Dedicated
  • Week One Done

Recent Badges

0

Reputation

  1. Hello and Good day, I need help regarding about adding a restriction to the Gold Room NPC we are currently working on. I would like that when the player is killed by another he loses all points gained and that the other player steals all the points of the player he killed Our server is currently running on rAthena. Thank you so much for the help! Here is the script: askald,104,205,5 script PvP Gold Room 4_F_KAFRA1,{ doevent "gold_room_main::OnTalk"; } // warp portal back prontera ordeal_3-2,123,123,0 warp gold_room_back_prt 1,1,prontera,155,181 // peco peco summon ordeal_3-2,0,0,0,0 monster Gold 1954,100,60000,0,"gold_room_main::OnKill" - script gold_room_main -1,{ OnInit: // gold room map .map$ = "ordeal_3-2"; // entrance fee .zeny_cost = 500000; // rate to get gold .rate = 100; // gold random amount setarray .gold_amount,1,5; setmapflag .map$,mf_noteleport; setmapflag .map$,mf_nobranch; setmapflag .map$,mf_nosave; setmapflag .map$,mf_nomemo; setmapflag .map$,mf_noreturn; setmapflag .map$,mf_nowarp; setmapflag .map$,mf_nowarpto; setmapflag .map$,mf_pvp; end; OnTalk: mes "Enter Gold Room ?"; if ( .zeny_cost ) mes F_InsertComma( .zeny_cost ) + " Zeny"; switch ( select( "Enter Gold Room","Exchange Gold Point","Information" )) { case 1: if ( Zeny < .zeny_cost ) { mes "Not enough Zeny."; } else { Zeny -= .zeny_cost; warp .map$,0,0; } next; break; case 2: mes "You got "+F_InsertComma( #GOLDPOINTS )+" Points"; input .@value,0,#GOLDPOINTS; if (.@value == 0) { mes "Exchange canceled."; close; } if ( checkweight( 969, .@value ) ) { #GOLDPOINTS -= .@value; getitem 969,.@value; mes "Gained "+.@value+" Gold."; } else { mes "You are overweight."; } break; case 3: mes "In this room you will have the chance to get 2 points for each monster killed, but if another player kills you you lose all your points! 1 point gets you 1 gold"; next; break; } close; OnKill: if ( .rate > rand( .100 ) ) { .@point = 2; #GOLDPOINTS += .@point; dispbottom "Gained "+.@point+" Point. You got "+F_InsertComma( #GOLDPOINTS )+" Points now."; } end; OnPCDieEvent: .@killerrid = killerrid; if ( strcharinfo(3) == .map$ && .@killerrid != getcharid(3) && getmonsterinfo( .@killerrid,MOB_NAME ) != "null" ) { #GOLDPOINTS = 0; dispbottom "You died, you lost all the point."; } end; }
  2. Hello and Good day, I need help regarding about adding a restriction to the Quest NPC we are currently working on. I would like the npc to be limited to only once per day and per account. Our server is currently running on rAthena. Thank you so much for the help! Here is the script: askald,42,102,3 script Claude#01 62,{ set @npc$,"[ ^0000FFClaude^000000 ]"; if ($@bbgum_found >= 5) { mes @npc$; mes "nice one!."; mes "Since you found us all, here's your reward."; getitem 12210,1; set $@bbgum_ongoing,0; set $@bbgum_found,0; disablenpc "Claude#02"; disablenpc "Claude#03"; disablenpc "Claude#04"; disablenpc "Claude#05"; disablenpc "Claude#06"; disablenpc "Francois#02"; disablenpc "Francois#03"; disablenpc "Francois#04"; disablenpc "Francois#05"; disablenpc "Francois#06"; disablenpc "Annie#02"; disablenpc "Annie#03"; disablenpc "Annie#04"; disablenpc "Annie#05"; disablenpc "Annie#06"; disablenpc "Dagobert#02"; disablenpc "Dagobert#03"; disablenpc "Dagobert#04"; disablenpc "Dagobert#05"; disablenpc "Dagobert#06"; disablenpc "Mick#02"; disablenpc "Mick#03"; disablenpc "Mick#04"; disablenpc "Mick#05"; disablenpc "Mick#06"; close; } if ($@bbgum_ongoing == 1) { mes @npc$; mes "^FF0000"+(5-$@bbgum_found)+"^000000 of my friends "+($@bbgum_found < 4 ? "are":"is")+" still hiding."; mes "Keep searching."; close; } mes @npc$; mes "Hello "+strcharinfo(0)+"."; mes "We want to play Hide and Seek."; mes "I'll give you reward if you find us all."; menu "Let's play Hide and seek",bbgum_yes,"Maybe next time...",bbgum_no; bbgum_no: next; mes @npc$; mes "Ok nice seeing you."; close; bbgum_yes: next; mes @npc$; mes "We'll be hiding somewhere in askald."; mes "Ready?"; close2; set $@bbgum_ongoing,1; mapannounce "askald","[Club of 5]: 1",0; sleep2 1000; mapannounce "askald","[Club of 5]: 2",0; sleep2 1000; mapannounce "askald","[Club of 5]: 3",0; sleep2 1000; mapannounce "askald","[Club of 5]: 4",0; sleep2 1000; mapannounce "askald","[Club of 5]: 5 !! Hide and Seek started",0; disablenpc "Claude#01"; disablenpc "Annie#01"; disablenpc "Dagobert#01"; disablenpc "Francois#01"; disablenpc "Mick#01"; set .a,rand(5); if (.@a == 0) enablenpc "Claude#02"; if (.@a == 1) enablenpc "Claude#03"; if (.@a == 2) enablenpc "Claude#04"; if (.@a == 3) enablenpc "Claude#05"; if (.@a == 4) enablenpc "Claude#06"; set .@b,rand(5); if (.@b == 0) enablenpc "Francois#02"; if (.@b == 1) enablenpc "Francois#03"; if (.@b == 2) enablenpc "Francois#04"; if (.@b == 3) enablenpc "Francois#05"; if (.@b == 4) enablenpc "Francois#06"; set .@c,rand(5); if (.@c == 0) enablenpc "Annie#02"; if (.@c == 1) enablenpc "Annie#03"; if (.@c == 2) enablenpc "Annie#04"; if (.@c == 3) enablenpc "Annie#05"; if (.@c == 4) enablenpc "Annie#06"; set .@d,rand(5); if (.@d == 0) enablenpc "Dagobert#02"; if (.@d == 1) enablenpc "Dagobert#03"; if (.@d == 2) enablenpc "Dagobert#04"; if (.@d == 3) enablenpc "Dagobert#05"; if (.@d == 4) enablenpc "Dagobert#06"; set .e,rand(5); if (.@e == 0) enablenpc "Mick#02"; if (.@e == 1) enablenpc "Mick#03"; if (.@e == 2) enablenpc "Mick#04"; if (.@e == 3) enablenpc "Mick#05"; if (.@e == 4) enablenpc "Mick#06"; end; //-----------------Disable on Init----------------------- OnInit: set $@bbgum_ongoing,0; set $@bbgum_found,0; disablenpc "Claude#02"; disablenpc "Claude#03"; disablenpc "Claude#04"; disablenpc "Claude#05"; disablenpc "Claude#06"; disablenpc "Francois#02"; disablenpc "Francois#03"; disablenpc "Francois#04"; disablenpc "Francois#05"; disablenpc "Francois#06"; disablenpc "Annie#02"; disablenpc "Annie#03"; disablenpc "Annie#04"; disablenpc "Annie#05"; disablenpc "Annie#06"; disablenpc "Dagobert#02"; disablenpc "Dagobert#03"; disablenpc "Dagobert#04"; disablenpc "Dagobert#05"; disablenpc "Dagobert#06"; disablenpc "Mick#02"; disablenpc "Mick#03"; disablenpc "Mick#04"; disablenpc "Mick#05"; disablenpc "Mick#06"; end; } askald,42,105,3 script Annie#01 96,{ if ($@bbgum_ongoing == 1) { mes "[ ^0000FFAnnie^000000 ]"; mes "^FF0000"+(5-$@bbgum_found)+"^000000 of my friends "+($@bbgum_found < 4 ? "are":"is")+" still hiding."; mes "Keep searching."; close; } end; } askald,42,109,3 script Dagobert#01 81,{ mes "[ ^0000FFDagobert^000000 ]"; mes "arf arf!."; close; } askald,42,112,3 script Francois#01 46,{ if ($@bbgum_ongoing == 1) { mes "[ ^0000FFFrancois^000000 ]"; mes "^FF0000"+(5-$@bbgum_found)+"^000000 of my friends "+($@bbgum_found < 4 ? "are":"is")+" still hiding."; mes "Keep searching."; close; } end; } askald,42,115,3 script Mick#01 962,{ if ($@bbgum_ongoing == 1) { mes "[ ^0000FFMick^000000 ]"; mes "^FF0000"+(5-$@bbgum_found)+"^000000 of my friends "+($@bbgum_found < 4 ? "are":"is")+" still hiding."; mes "Keep searching."; close; } end; } //-----------------Hidden NPC's-------------------------- //------------------------------Claude------------------------------ askald,42,119,3 script Claude#02 62,{ mes "[ ^0000FFClaude^000000 ]"; mes "OMG! you found me"; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Claude#02"; enablenpc "Claude#01"; end; } askald,42,123,3 script Claude#03 62,{ mes "[ ^0000FFClaude^000000 ]"; mes "OMG! you found me"; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Claude#03"; enablenpc "Claude#01"; end; } askald,42,126,3 script Claude#04 62,{ mes "[ ^0000FFClaude^000000 ]"; mes "OMG! you found me"; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Claude#04"; enablenpc "Claude#01"; end; } askald,42,129,3 script Claude#05 62,{ mes "[ ^0000FFClaude^000000 ]"; mes "OMG! you found me"; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Claude#05"; enablenpc "Claude#01"; end; } askald,42,132,3 script Claude#06 62,{ mes "[ ^0000FFClaude^000000 ]"; mes "OMG! you found me"; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Claude#06"; enablenpc "Claude#01"; end; } //-------------------------------Francois------------------------------ askald,42,135,3 script Francois#02 46,{ mes "[ ^0000FFFrancois^000000 ]"; mes "Nice job."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Francois#02"; enablenpc "Francois#01"; end; } askald,42,136,3 script Francois#03 46,{ mes "[ ^0000FFFrancois^000000 ]"; mes "Nice job."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Francois#03"; enablenpc "Francois#01"; end; } askald,42,139,3 script Francois#04 46,{ mes "[ ^0000FFFrancois^000000 ]"; mes "Nice job."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Francois#04"; enablenpc "Francois#01"; end; } askald,42,143,3 script Francois#05 46,{ mes "[ ^0000FFFrancois^000000 ]"; mes "Nice job."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Francois#05"; enablenpc "Francois#01"; end; } askald,42,147,3 script Francois#06 46,{ mes "[ ^0000FFFrancois^000000 ]"; mes "Nice job."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Francois#06"; enablenpc "Francois#01"; end; } //-------------------------------Annie-------------------------------- askald,42,150,3 script Annie#02 96,{ mes "[ ^0000FFAnnie^000000 ]"; mes "Your good."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Annie#02"; enablenpc "Annie#01"; end; } askald,39,150,3 script Annie#03 96,{ mes "[ ^0000FFAnnie^000000 ]"; mes "Your good."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Annie#03"; enablenpc "Annie#01"; end; } askald,39,147,3 script Annie#04 96,{ mes "[ ^0000FFAnnie^000000 ]"; mes "Your good."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Annie#04"; enablenpc "Annie#01"; end; } askald,39,144,3 script Annie#05 96,{ mes "[ ^0000FFAnnie^000000 ]"; mes "Your good."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Annie#05"; enablenpc "Annie#01"; end; } askald,39,140,3 script Annie#06 96,{ mes "[ ^0000FFAnnie^000000 ]"; mes "Your good."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Annie#06"; enablenpc "Annie#01"; end; } //-------------------------------Dagobert-------------------------------- askald,39,137,3 script Dagobert#02 81,{ mes "[ ^0000FFDagobert^000000 ]"; mes "arf arf!."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Dagobert#02"; enablenpc "Dagobert#01"; end; } askald,39,134,3 script Dagobert#03 81,{ mes "[ ^0000FFDagobert^000000 ]"; mes "arf arf!."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Dagobert#03"; enablenpc "Dagobert#01"; end; } askald,39,130,3 script Dagobert#04 81,{ mes "[ ^0000FFDagobert^000000 ]"; mes "arf arf!."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Dagobert#04"; enablenpc "Dagobert#01"; end; } askald,39,127,3 script Dagobert#05 81,{ mes "[ ^0000FFDagobert^000000 ]"; mes "arf arf!."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Dagobert#05"; enablenpc "Dagobert#01"; end; } askald,39,120,3 script Dagobert#06 81,{ mes "[ ^0000FFDagobert^000000 ]"; mes "arf arf!."; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Dagobert#06"; enablenpc "Dagobert#01"; end; } //-------------------------------Mick-------------------------------- askald,35,140,3 script Mick#02 962,{ mes "[ ^0000FFMick^000000 ]"; mes "Finally!"; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Mick#02"; enablenpc "Mick#01"; end; } askald,35,135,3 script Mick#03 962,{ mes "[ ^0000FFMick^000000 ]"; mes "Finally!"; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Mick#03"; enablenpc "Mick#01"; end; } askald,35,130,3 script Mick#04 962,{ mes "[ ^0000FFMick^000000 ]"; mes "Finally!"; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Mick#04"; enablenpc "Mick#01"; end; } askald,35,127,3 script Mick#05 962,{ mes "[ ^0000FFMick^000000 ]"; mes "Finally!"; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Mick#05"; enablenpc "Mick#01"; end; } askald,35,125,3 script Mick#06 962,{ mes "[ ^0000FFMick^000000 ]"; mes "Finally!"; close2; set $@bbgum_found,$@bbgum_found+1; disablenpc "Mick#06"; enablenpc "Mick#01"; end; }
  3. Thank you for the answers, unfortunately I can't do it I still have "unknown column on field type" Edit: is work now the column name drop8_item on my db Sorry but now i have a new error if someone can me help please
  4. Hello, someone can explain me how work script please, i add sql tables on my db but i have error
  5. update it's ok Edit : the problem came from a } in the wrong place
  6. thanks i check this
  7. Hello, I would like to know if someone could give me all the paths in the data folder for the following custom sprite: hat, NPC, weapon, equipment. Because I have a big GRF file, I would like to create several GRF files so that everything is not mixed, for example headgear.grf, npc.grf.. please
  8. I encountered a small problem, so I moved everything, everything went well but once in the game I don't see the hat on me, would you know where this could come from please?
  9. did you find the solution please?
  10. Thanks man you save my life, at first glance the generator works very well, I'm going to check its IG
×
×
  • Create New...