Jump to content

Skorm

Forum Moderator
  • Posts

    1282
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Skorm

  1. I don't seem to have this error. Tell me how many people you're using to start the event, and are you doing the Prize Game Event? Can you please post an image of your compiler with the error message?
  2. payon,134,230,3 script Events Coordinator 752,{ //This is the variable that will be your reward id set throught this script set $rewarditem, 12103;//Fugitive game variables so people can talk to this npc and be warped when the event is running if(getgmlevel() >= 20) goto L_GM;mes "I'm here to help GMs make events quickly and painlessly."; close; L_GM: mes "Hello, "+strcharinfo(0)+"!"; mes "How can I help you today?"; menu "Make an Event",L_Event,"Nevermind",L_end,"Reset Games",L_resetg;L_Event: mes "I see you want to create an event today."; mes "What type will it be?"; menu "Russian Roulette",L_russ; //Here starts the Russian Roulette NPC L_russ: if ($@rron == 1) goto L_gamestart; mes "Will this be a set reward game, or a betting game?"; menu "Set Prize Game",-,"Betting Game",L_russbet; mes "How many players do you want in this game? It can be a max of 30."; input $@players; next; if ($@players < 2) { mes "Needs more players!"; close;} if ($@players > 30) { mes "Too many players!"; close;} mes "Are you sure you want to start this event?"; menu "Yes",L_sruss,"No",L_end;L_sruss: set $@rron,1; set $@rrbet,0; announce "A Russian Roulette Game has started for "+$@players+" players!",bc_blue|bc_all; announce "Talk to the Russian Roulette NPC in Payon.",bc_blue|bc_all; enablenpc "Russian Roulette"; close; L_russbet: mes "How many players do you want in this game? It can be a max of 30."; input $@players; next; if ($@players < 2) { mes "Needs more players!"; close;} if ($@players > 30) { mes "Too many players!"; close;} mes "Now you must decide the forced bet upon players."; mes "Recommended 20-50."; input $@forcebet; mes "Are you sure you want to start this event?"; menu "Yes",L_sruss2,"No",L_end;L_sruss2: set $@rron,1; set $@rrbet,1; announce "A Betting Russian Roulette Game has started for "+$@players+" players!",bc_blue|bc_all; announce "This game has a forced bet of "+$@forcebet+" Tokens.",bc_blue|bc_all; enablenpc "Russian Roulette"; close; L_gamestart: mes "A game has already started. Would you like to stop or end it?"; menu "No",-,"Stop Game",L_sgame; close;L_sgame: announce "The GM has stopped this game. Only "+$@join+" players have joined.",3; set $@players,$@join; close; L_resetg: mes "This is for the purpose of resetting Russian Roulette and Juggernaut games and variables if complications occur."; next; mes "Would you like to reset the games?"; menu "No",L_end,"Yes",-; disablenpc "Russian Roulette"; set $@jon,0; set $@jjoin,0; set $@jugbuff,0; set $@players,0; set $@player1,0; set $@player2,0; set $@player3,0; set $@player4,0; set $@player5,0; set $@player6,0; set $@player7,0; set $@player8,0; set $@player9,0; set $@jjoin1,0; set $@jjoin2,0; set $@jjoin3,0; set $@jjoin4,0; set $@jjoin5,0; set $@jjoin6,0; set $@jjoin7,0; set $@jjoin8,0; set $@jjoin9,0; set $@jjoin10,0; set @death,0; set @gm,0; set $@rron,0; set $@join,0; set $@player1,0; set $@player2,0; set $@player3,0; set $@player4,0; set $@player5,0; set $@player6,0; set $@player7,0; set $@player8,0; set $@player9,0; set $@player10,0; set $@player11,0; set $@player12,0; set $@player13,0; set $@player14,0; set $@player15,0; set $@player16,0; set $@player17,0; set $@player18,0; set $@player19,0; set $@player20,0; set $@player21,0; set $@player22,0; set $@player23,0; set $@player24,0; set $@player25,0; set $@player26,0; set $@player27,0; set $@player28,0; set $@player29,0; set $@player30,0; set $@join1,0; set $@join2,0; set $@join3,0; set $@join4,0; set $@join5,0; set $@join6,0; set $@join7,0; set $@join8,0; set $@join9,0; set $@join10,0; set $@join11,0; set $@join12,0; set $@join13,0; set $@join14,0; set $@join15,0; set $@join16,0; set $@join17,0; set $@join18,0; set $@join19,0; set $@join20,0; set $@join21,0; set $@join22,0; set $@join23,0; set $@join24,0; set $@join25,0; set $@join26,0; set $@join27,0; set $@join28,0; set $@join29,0; set $@join30,0; stopnpctimer; setnpctimer 0; set $@fugidead,0; set $@fugitive,0; set $@fugiwarp,0; set $@fugiwins,0; removemapflag "pvp_y_8-4.gat",mf_gvg; removemapflag "pvp_y_8-4.gat",mf_nomemo; removemapflag "pvp_y_8-4.gat",mf_noteleport; removemapflag "pvp_y_8-4.gat",mf_noexppenalty; removemapflag "pvp_y_8-4.gat",mf_nowarpto; removemapflag "pvp_y_8-4.gat",mf_loadevent; close; L_end: mes "Ok!"; close; } payon,124,228,0 script Disabler 57,{ OnInit: disablenpc "Russian Roulette"; end; } payon,155,217,6 script Russian Roulette 52,{ if ($@players == $@join) goto L_bullet; set @gm,0;if ($@join1 == getcharid(3)) goto L_signed; if ($@join2 == getcharid(3)) goto L_signed; if ($@join3 == getcharid(3)) goto L_signed; if ($@join4 == getcharid(3)) goto L_signed; if ($@join5 == getcharid(3)) goto L_signed; if ($@join6 == getcharid(3)) goto L_signed; if ($@join7 == getcharid(3)) goto L_signed; if ($@join8 == getcharid(3)) goto L_signed; if ($@join9 == getcharid(3)) goto L_signed; if ($@join10 == getcharid(3)) goto L_signed; if ($@join11 == getcharid(3)) goto L_signed; if ($@join12 == getcharid(3)) goto L_signed; if ($@join13 == getcharid(3)) goto L_signed; if ($@join14 == getcharid(3)) goto L_signed; if ($@join15 == getcharid(3)) goto L_signed; if ($@join16 == getcharid(3)) goto L_signed; if ($@join17 == getcharid(3)) goto L_signed; if ($@join18 == getcharid(3)) goto L_signed; if ($@join19 == getcharid(3)) goto L_signed; if ($@join20 == getcharid(3)) goto L_signed; if ($@join21 == getcharid(3)) goto L_signed; if ($@join22 == getcharid(3)) goto L_signed; if ($@join23 == getcharid(3)) goto L_signed; if ($@join24 == getcharid(3)) goto L_signed; if ($@join25 == getcharid(3)) goto L_signed; if ($@join26 == getcharid(3)) goto L_signed; if ($@join27 == getcharid(3)) goto L_signed; if ($@join28 == getcharid(3)) goto L_signed; if ($@join29 == getcharid(3)) goto L_signed; if ($@join30 == getcharid(3)) goto L_signed; if ($@join == 1) goto L_join2; if ($@join == 2) goto L_join3; if ($@join == 3) goto L_join4; if ($@join == 4) goto L_join5; if ($@join == 5) goto L_join6; if ($@join == 6) goto L_join7; if ($@join == 7) goto L_join8; if ($@join == 8) goto L_join9; if ($@join == 9) goto L_join10; if ($@join == 10) goto L_join11; if ($@join == 11) goto L_join12; if ($@join == 12) goto L_join13; if ($@join == 13) goto L_join14; if ($@join == 14) goto L_join15; if ($@join == 15) goto L_join16; if ($@join == 16) goto L_join17; if ($@join == 17) goto L_join18; if ($@join == 18) goto L_join19; if ($@join == 19) goto L_join20; if ($@join == 20) goto L_join21; if ($@join == 21) goto L_join22; if ($@join == 22) goto L_join23; if ($@join == 23) goto L_join24; if ($@join == 24) goto L_join25; if ($@join == 25) goto L_join26; if ($@join == 26) goto L_join27; if ($@join == 27) goto L_join28; if ($@join == 28) goto L_join29; if ($@join == 29) goto L_join30; L_join: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,1; set $@join1,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 1"; close;L_join2: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,2; set $@join2,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 2"; if ($@players == $@join) goto L_full; close; L_join3: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,3; set $@join3,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 3"; if ($@players == $@join) goto L_full; close;L_join4: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,4; set $@join4,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 4"; if ($@players == $@join) goto L_full; close; L_join5: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,5; set $@join5,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 5"; if ($@players == $@join) goto L_full; close;L_join6: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,6; set $@join6,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 6"; if ($@players == $@join) goto L_full; close; L_join7: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,7; set $@join7,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 7"; if ($@players == $@join) goto L_full; close;L_join8: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,8; set $@join8,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 8"; if ($@players == $@join) goto L_full; close; L_join9: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,9; set $@join9,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 9"; if ($@players == $@join) goto L_full; close;L_join10: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,10; set $@join10,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 10"; if ($@players == $@join) goto L_full; close; L_join11: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,11; set $@join11,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 11"; if ($@players == $@join) goto L_full; close;L_join12: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,12; set $@join12,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 12"; if ($@players == $@join) goto L_full; close; L_join13: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,13; set $@join13,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 13"; if ($@players == $@join) goto L_full; close;L_join14: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,14; set $@join14,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 14"; if ($@players == $@join) goto L_full; close; L_join15: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,15; set $@join15,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 15"; if ($@players == $@join) goto L_full; close;L_join16: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,16; set $@join16,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 16"; if ($@players == $@join) goto L_full; close; L_join17: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,17; set $@join17,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 17"; if ($@players == $@join) goto L_full; close;L_join18: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,18; set $@join18,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 18"; if ($@players == $@join) goto L_full; close; L_join19: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,19; set $@join19,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 19"; if ($@players == $@join) goto L_full; close;L_join20: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,20; set $@join20,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 20"; if ($@players == $@join) goto L_full; close; L_join21: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,21; set $@join21,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 21"; if ($@players == $@join) goto L_full; close;L_join22: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,22; set $@join22,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 22"; if ($@players == $@join) goto L_full; close; L_join23: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,23; set $@join23,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 23"; if ($@players == $@join) goto L_full; close;L_join24: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,24; set $@join24,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 24"; if ($@players == $@join) goto L_full; close; L_join25: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,25; set $@join25,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 25"; if ($@players == $@join) goto L_full; close;L_join26: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,26; set $@join26,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 26"; if ($@players == $@join) goto L_full; close; L_join27: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,27; set $@join27,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 27"; if ($@players == $@join) goto L_full; close;L_join28: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,28; set $@join28,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 28"; if ($@players == $@join) goto L_full; close; L_join29: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,29; set $@join29,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 29"; if ($@players == $@join) goto L_full; close;L_join30: if ($@rrbet == 1) { if(countitem(671)< $@forcebet) goto L_notoken; delitem 671,$@forcebet;} set $@join,30; set $@join30,getcharid(3); npctalk ""+strcharinfo(0)+" has joined as Player 30"; if ($@players == $@join) goto L_full; close; L_notoken: mes "Get at least "+$@forcebet+" tokens to play!"; close;L_full: if ($@rrbet == 1) { set @fullbet,$@forcebet * $@players; announce "The game is now full with a full bet of "+@fullbet+".",2; close;} announce "The game is now full. Sorry, try again another time!",2; close; L_bullet: if(getgmlevel() > 10) goto L_bullet1; mes "I need a GM to talk to me to finish the game."; close;L_bullet1: mes "Ready to start?"; menu "Yes",-,"No",L_nohost,"Stop the Game",L_rstop; if (@gm == 1) goto L_GMstart; set @gm,1; set $@lcheck,2; L_bullet2: if (@death == ($@players - 1)) goto L_finish; mes "Pull the trigger?"; menu "Yes",-,"Stop the Game",L_rstop2;L_bullet3: set @rbullet,rand(1,$@join); if (@rbullet == 1){ set $@deadplayer,$@player1; set $@joinplayer,$@join1; goto L_bullet4;} if (@rbullet == 2){ set $@deadplayer,$@player2; set $@joinplayer,$@join2; goto L_bullet4;} if (@rbullet == 3){ set $@deadplayer,$@player3; set $@joinplayer,$@join3; goto L_bullet4;} if (@rbullet == 4){ set $@deadplayer,$@player4; set $@joinplayer,$@join4; goto L_bullet4;} if (@rbullet == 5){ set $@deadplayer,$@player5; set $@joinplayer,$@join5; goto L_bullet4;} if (@rbullet == 6){ set $@deadplayer,$@player6; set $@joinplayer,$@join6; goto L_bullet4;} if (@rbullet == 7){ set $@deadplayer,$@player7; set $@joinplayer,$@join7; goto L_bullet4;} if (@rbullet == 8){ set $@deadplayer,$@player8; set $@joinplayer,$@join8; goto L_bullet4;} if (@rbullet == 9){ set $@deadplayer,$@player9; set $@joinplayer,$@join9; goto L_bullet4;} if (@rbullet == 10){ set $@deadplayer,$@player10; set $@joinplayer,$@join10; goto L_bullet4;} if (@rbullet == 11){ set $@deadplayer,$@player11; set $@joinplayer,$@join11; goto L_bullet4;} if (@rbullet == 12){ set $@deadplayer,$@player12; set $@joinplayer,$@join12; goto L_bullet4;} if (@rbullet == 13){ set $@deadplayer,$@player13; set $@joinplayer,$@join13; goto L_bullet4;} if (@rbullet == 14){ set $@deadplayer,$@player14; set $@joinplayer,$@join14; goto L_bullet4;} if (@rbullet == 15){ set $@deadplayer,$@player15; set $@joinplayer,$@join15; goto L_bullet4;} if (@rbullet == 16){ set $@deadplayer,$@player16; set $@joinplayer,$@join16; goto L_bullet4;} if (@rbullet == 17){ set $@deadplayer,$@player17; set $@joinplayer,$@join17; goto L_bullet4;} if (@rbullet == 18){ set $@deadplayer,$@player18; set $@joinplayer,$@join18; goto L_bullet4;} if (@rbullet == 19){ set $@deadplayer,$@player19; set $@joinplayer,$@join19; goto L_bullet4;} if (@rbullet == 20){ set $@deadplayer,$@player20; set $@joinplayer,$@join20; goto L_bullet4;} if (@rbullet == 21){ set $@deadplayer,$@player21; set $@joinplayer,$@join21; goto L_bullet4;} if (@rbullet == 22){ set $@deadplayer,$@player22; set $@joinplayer,$@join22; goto L_bullet4;} if (@rbullet == 23){ set $@deadplayer,$@player23; set $@joinplayer,$@join23; goto L_bullet4;} if (@rbullet == 24){ set $@deadplayer,$@player24; set $@joinplayer,$@join24; goto L_bullet4;} if (@rbullet == 24){ set $@deadplayer,$@player24; set $@joinplayer,$@join24; goto L_bullet4;} if (@rbullet == 25){ set $@deadplayer,$@player25; set $@joinplayer,$@join25; goto L_bullet4;} if (@rbullet == 26){ set $@deadplayer,$@player26; set $@joinplayer,$@join26; goto L_bullet4;} if (@rbullet == 27){ set $@deadplayer,$@player27; set $@joinplayer,$@join27; goto L_bullet4;} if (@rbullet == 28){ set $@deadplayer,$@player28; set $@joinplayer,$@join28; goto L_bullet4;} if (@rbullet == 29){ set $@deadplayer,$@player29; set $@joinplayer,$@join29; goto L_bullet4;} if (@rbullet == 30){ set $@deadplayer,$@player30; set $@joinplayer,$@join30; goto L_bullet4;} L_bullet4: if ($@deadplayer == 1) goto L_bullet3; if (rand(1,$@lcheck) == 1){ set @phrase1,rand(1,4); if (@phrase1 == 1){ announce ""+rid2name($@joinplayer)+" finds that the gun did not fire...",bc_blue|bc_all;} if (@phrase1 == 2){ announce ""+rid2name($@joinplayer)+" luckily survives this round...",bc_blue|bc_all;} if (@phrase1 == 3){ announce ""+rid2name($@joinplayer)+" dodges death by an inch...",bc_blue|bc_all;} if (@phrase1 == 4){ announce ""+rid2name($@joinplayer)+" hears a click in the gun...",bc_blue|bc_all;} set $@lcheck,$@lcheck+1; goto L_bullet2;} set @phrase2,rand(1,6); if (@phrase2 == 1){ announce ""+rid2name($@joinplayer)+" is definately not having a good day.",bc_blue|bc_all;} if (@phrase2 == 2){ announce ""+rid2name($@joinplayer)+" got a shot in the face.",bc_blue|bc_all;} if (@phrase2 == 3){ announce ""+rid2name($@joinplayer)+" is done for.",bc_blue|bc_all;} if (@phrase2 == 4){ announce ""+rid2name($@joinplayer)+" sees the reaper.",bc_blue|bc_all;} if (@phrase2 == 5){ announce ""+rid2name($@joinplayer)+" just got pwned.",bc_blue|bc_all;} if (@phrase2 == 6){ announce ""+rid2name($@joinplayer)+" dies a nastly, horrible, discusting, vile death.",bc_blue|bc_all;} atcommand "@nuke "+rid2name($@joinplayer); if ($@joinplayer == $@join1) { set $@player1,1; } if ($@joinplayer == $@join2) { set $@player2,1; } if ($@joinplayer == $@join3) { set $@player3,1; } if ($@joinplayer == $@join4) { set $@player4,1; } if ($@joinplayer == $@join5) { set $@player5,1; } if ($@joinplayer == $@join6) { set $@player6,1; } if ($@joinplayer == $@join7) { set $@player7,1; } if ($@joinplayer == $@join8) { set $@player8,1; } if ($@joinplayer == $@join9) { set $@player9,1; } if ($@joinplayer == $@join10) { set $@player10,1; } if ($@joinplayer == $@join11) { set $@player11,1; } if ($@joinplayer == $@join12) { set $@player12,1; } if ($@joinplayer == $@join13) { set $@player13,1; } if ($@joinplayer == $@join14) { set $@player14,1; } if ($@joinplayer == $@join15) { set $@player15,1; } if ($@joinplayer == $@join16) { set $@player16,1; } if ($@joinplayer == $@join17) { set $@player17,1; } if ($@joinplayer == $@join18) { set $@player18,1; } if ($@joinplayer == $@join19) { set $@player19,1; } if ($@joinplayer == $@join20) { set $@player20,1; } if ($@joinplayer == $@join21) { set $@player21,1; } if ($@joinplayer == $@join22) { set $@player22,1; } if ($@joinplayer == $@join23) { set $@player23,1; } if ($@joinplayer == $@join24) { set $@player24,1; } if ($@joinplayer == $@join25) { set $@player25,1; } if ($@joinplayer == $@join26) { set $@player26,1; } if ($@joinplayer == $@join27) { set $@player27,1; } if ($@joinplayer == $@join28) { set $@player28,1; } if ($@joinplayer == $@join29) { set $@player29,1; } if ($@joinplayer == $@join30) { set $@player30,1; } set @death,@death+1; goto L_bullet2; L_GMstart: mes "A GM has already started this game. Please don't interfere."; close;L_signed: mes "You're already in! Don't try to slip it passed me!"; close; L_nohost: mes "When you're ready, just talk to me again."; set @gm,0; close;L_rstop: if (@gm == 1) goto L_GMstart; announce "The GM has ended this game.",3; set @gm,0; set $@rron,0; disablenpc "Russian Roulette"; close; L_rstop2: announce "The GM has ended this game.",3; set @gm,0; set $@rron,0; disablenpc "Russian Roulette"; close;L_finish: set @tokena,rand(1,3); if ($@rrbet == 1) { set @tokena,$@forcebet * $@players;} if ($@player1 != 1) { set $@winner,$@join1; goto L_finish1;} if ($@player2 != 1) { set $@winner,$@join2; goto L_finish1;} if ($@player3 != 1) { set $@winner,$@join3; goto L_finish1;} if ($@player4 != 1) { set $@winner,$@join4; goto L_finish1;} if ($@player5 != 1) { set $@winner,$@join5; goto L_finish1;} if ($@player6 != 1) { set $@winner,$@join6; goto L_finish1;} if ($@player7 != 1) { set $@winner,$@join7; goto L_finish1;} if ($@player8 != 1) { set $@winner,$@join8; goto L_finish1;} if ($@player9 != 1) { set $@winner,$@join9; goto L_finish1;} if ($@player10 != 1) { set $@winner,$@join10; goto L_finish1;} if ($@player11 != 1) { set $@winner,$@join11; goto L_finish1;} if ($@player12 != 1) { set $@winner,$@join12; goto L_finish1;} if ($@player13 != 1) { set $@winner,$@join13; goto L_finish1;} if ($@player14 != 1) { set $@winner,$@join14; goto L_finish1;} if ($@player15 != 1) { set $@winner,$@join15; goto L_finish1;} if ($@player16 != 1) { set $@winner,$@join16; goto L_finish1;} if ($@player17 != 1) { set $@winner,$@join17; goto L_finish1;} if ($@player18 != 1) { set $@winner,$@join18; goto L_finish1;} if ($@player19 != 1) { set $@winner,$@join19; goto L_finish1;} if ($@player20 != 1) { set $@winner,$@join20; goto L_finish1;} if ($@player21 != 1) { set $@winner,$@join21; goto L_finish1;} if ($@player22 != 1) { set $@winner,$@join22; goto L_finish1;} if ($@player23 != 1) { set $@winner,$@join23; goto L_finish1;} if ($@player24 != 1) { set $@winner,$@join24; goto L_finish1;} if ($@player25 != 1) { set $@winner,$@join25; goto L_finish1;} if ($@player26 != 1) { set $@winner,$@join26; goto L_finish1;} if ($@player27 != 1) { set $@winner,$@join27; goto L_finish1;} if ($@player28 != 1) { set $@winner,$@join28; goto L_finish1;} if ($@player29 != 1) { set $@winner,$@join29; goto L_finish1;} else { set $@winner,$@join30; goto L_finish1;} L_finish1: //charcommand "#item "+$rewarditem+" "+@tokena+" "+$@winner; attachrid($@winner); announce ""+strcharinfo(0)+" has won and gets "+@tokena+" "+getitemname($rewarditem)+"s!",bc_blue|bc_all; getitem $rewarditem,@tokena; atcommand "@raise"; disablenpc "Russian Roulette"; close2; set @death,0; set @gm,0; set $@rron,0; set $@join,0; set $@player1,0; set $@player2,0; set $@player3,0; set $@player4,0; set $@player5,0; set $@player6,0; set $@player7,0; set $@player8,0; set $@player9,0; set $@player10,0; set $@player11,0; set $@player12,0; set $@player13,0; set $@player14,0; set $@player15,0; set $@player16,0; set $@player17,0; set $@player18,0; set $@player19,0; set $@player20,0; set $@player21,0; set $@player22,0; set $@player23,0; set $@player24,0; set $@player25,0; set $@player26,0; set $@player27,0; set $@player28,0; set $@player29,0; set $@player30,0; set $@join1,0; set $@join2,0; set $@join3,0; set $@join4,0; set $@join5,0; set $@join6,0; set $@join7,0; set $@join8,0; set $@join9,0; set $@join10,0; set $@join11,0; set $@join12,0; set $@join13,0; set $@join14,0; set $@join15,0; set $@join16,0; set $@join17,0; set $@join18,0; set $@join19,0; set $@join20,0; set $@join21,0; set $@join22,0; set $@join23,0; set $@join24,0; set $@join25,0; set $@join26,0; set $@join27,0; set $@join28,0; set $@join29,0; set $@join30,0; end; }
  3. In "Ragnarok Server\trunk\npc\kafras\functions_kafras.txt" Find: Add After: if(getd("$gspass"+getcharid(2)+"$")!=""){mes "Please input your guilds password."; input(.@gspass$);if(.@gspass$==getd("$gspass"+getcharid(2)+"$")){ mes "Welcome!"; } else { mes "I'm sorry but that's incorrect, please try again later."; cutin "", 255; close; }} If it helps at all you add this after line 198. This is optional if you're using the custom warper or not. In "Ragnarok Server\trunk\npc\custom\etc\quest_warper.txt" Find: Add After: if(getd("$gspass"+getcharid(2)+"$")!=""){mes "Please input your guilds password."; input(.@gspass$);if(.@gspass$==getd("$gspass"+getcharid(2)+"$")){ mes "Welcome!"; } else { mes "I'm sorry but that's incorrect, please try again later."; cutin "", 255; close; }} If it helps at all you add this after line 497.
  4. Well it is and it isn't. Disable the guild storage command, and instead use an npc like this. prontera,165,188,4 script Guild Warehouse 112,{ cutin "kafra_06",2; mes "[Guild Warehouse Coupler]"; mes "This is the guild warehouse coupler service."; next; menu "Access Guild Warehouse", GS_OPEN, "Set Guild Warehouse Password", GS_PASS, "Exit", GS_EXIT3; GS_OPEN: if(getd("$gspass"+getcharid(2)+"$")!=""){ mes "Please input your guilds password."; input(.@gspass$); if(.@gspass$==getd("$gspass"+getcharid(2)+"$")){ mes "Welcome!"; } else { mes "I'm sorry but that's incorrect, please try again later."; goto GS_EXIT4; } } set @flag,guildopenstorage; if(@flag == 1) goto GS_EXIT1; if(@flag == 2) goto GS_EXIT2; goto GS_EXIT4; GS_PASS: if(!getcharid(2)) { mes "I'm sorry but you don't have a guild."; goto GS_EXIT4; } query_sql("SELECT `master` FROM `guild` WHERE `guild_id` = '"+ getcharid(2) +"';",.@b$); if(.@b$!=strcharinfo(0)){ mes "I'm sorry but you're not the leader of "+strcharinfo(2)+"."; goto GS_EXIT4; } if(getd("$gspass"+getcharid(2)+"$")!=""){ mes "Did you forget, your guild password is "+getd("$gspass"+getcharid(2)+"$")+". Do you still want to change it?"; if(select("Yes:No")-1) goto GS_EXIT4; } mes "Please Input your new guild password."; input(.@gspass1$); mes "Again."; input(.@gspass2$); if(.@gspass1$==.@gspass2$){ setd "$gspass"+getcharid(2)+"$",.@gspass1$; } else { mes "I'm sorry, but your passwords didn't match, please try again."; goto GS_PASS; } mes getd("$gspass"+getcharid(2)+"$")+" has been set as your password."; goto GS_EXIT4; GS_EXIT1: mes "[Guild Warehouse]"; mes "The guild warehouse is being used right now."; mes "Please wait a while, then come back."; goto GS_EXIT4; GS_EXIT2: mes "[Guild Warehouse]"; mes "You can't use this service if you're not in a guild!"; goto GS_EXIT4; GS_EXIT3: mes "[Guild Warehouser]"; mes "Come back whenever you want."; GS_EXIT4: cutin "kafra_06",255; close; }Warning if the guild is broken this script will leave unused global variables in your global_reg_value table.This script hasn't been tested yet. If you want the npc to be mobile... change the top line. - script gstorage -1,{ OnWhisperGlobal:Will be accessed from whisper menu with npc:gstorage.Also remember to modifiy the Kafra's inside of the guild bases because I think they allow guild storage access.
  5. In: Ragnarok Server\trunk\db\const.txt Search for "SC_" It's one of those I really don't know which though. I found SC_SUN_COMFORT 217 but not warmth.
  6. Skorm

    Inventory NPC

    Worked fine for me the itemid is 7227. Make sure you have 10 Zeny as well as 10 TCGs.Edit: I see your problem now! I said Add set .itemid,7227; After set .day,gettime(4); you just replaced it. //=================Configuration================ set .day,gettime(4); set .itemid,7227; //Itemlist
  7. Skorm

    Inventory NPC

    This should do the trick. Find: Replace With: delitem .itemid,getd(".price_list"+.day+"["+@i+"]")*((@bought_quantity[@d]>getd(".amount_list"+.day+"["+@i+"]"))?getd(".amount_list"+.day+"["+@i+"]"):@bought_quantity[@d]); Find: Replace With: if(countitem(.itemid) >= (getd(".price_list"+.day+"["+@i+"]")*@bought_quantity[@d])) { After: Add: set .itemid,7227;
  8. Skorm

    Guild Creator

    Well I tested all the scripts... They work but I don't think... Sql can really give you what you want... The Name Changer probably works the best but still the server needs to be restarted in order for changes to be seen. Instead my advice would be to ask someone around the source section of this forums to modify the current @guild command to accept special characters, or ask them to make an npccreateguild command. If there isn't already one out there. Goodluck~
  9. Yes sleep 3600000 * 6; // 1 Hour in Milliseconds * 621600000 / 1000 = 21600 //seconds 21600 / 60 = 360 //Minutes 360 / 60 = 6 //Hours
  10. Thanks again, Brian, I know what you meant. All those getarg(3) should be getarg(2) And make sure to change the healers locations... I'll modify my first post... I just don't test these things because it's time consuming xD.
  11. Normally when like the people who ask for the script want to take it over I just make the modification they asked for... Tested and working. new_4-2,83,115,4 script Bling 100,{ set .@price,1000000; if(Zeny<.@price){ mes "Im sorry but you dont have enough zeny to enchant this."; next; mes "if you are interested in my job"; mes "please bring more zeny."; close; } mes "Hi, you are here"; next; mes "I can enchant your sunnglasses whit a marvelous gem"; mes "with this gem you will be able to unlock a skill"; mes "and use it anytime you want, remebr to keep equiped your sunglasses"; next; mes "the skill gained will depend on your job"; mes "the gainend skill can vary depending on it, thats why diferent jobs gain different skills "; next; mes "Do you wnbt ton enchant your sunnglasses?"; next; if(select("Enchant Sunglasses:Not for now")==1) { mes "Am glad you wish to do this"; mes "ok, Let it Rip Bro!"; next; if(!isequipped(2202)){ mes "ehhh wait a minute dude"; mes "Cant work with this"; next; mes "Please come back"; mes "when you have a sunglasses[1] equiped."; close; } set Zeny,Zeny-.@price; if(getequipid(9)==2202){ .@id = getequipid(9); .@ref = getequiprefinerycnt(9); .@card1 = getequipcardid( 9, 0 ); .@card2 = getequipcardid( 9, 1 ); .@card3 = getequipcardid( 9, 2 ); .@card4 = getequipcardid( 9, 3 ); progressbar "ffff00",4; delitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, .@card4; specialeffect2 101; getitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, 4848; equip .@id; mes "there you go!"; next; mes "here, a coupla mob to try your new skills"; next; atcommand "@monster 1031"; atcommand "@monster 1002"; atcommand "@monster 1062"; atcommand "@monster 1113"; atcommand "@monster 1242"; close; } } mes "Ok I got it?"; mes "if you change your mind remember"; mes "to equip your sunnies and talk to me!"; close; // End switch end; }
  12. Skorm

    Inventory NPC

    Modify configuration here: //=================Configuration================ set .day,gettime(4); //Itemlist setarray .shop_list0,502,503,504,505,506; //Sunday setarray .shop_list1,501,502,503,504,505; //Monday setarray .shop_list2,502,503,504,505,506; //Tuesday setarray .shop_list3,501,502,503,504,505; //Wednesday setarray .shop_list4,502,503,504,505,506; //Thursday setarray .shop_list5,501,502,503,504,505; //Friday setarray .shop_list6,502,503,504,505,506; //Saturday //Pricelist setarray .price_list0,20,40,300,400,500; //Sunday setarray .price_list1,20,40,300,400,500; //Monday setarray .price_list2,20,40,300,400,500; //Tuesday setarray .price_list3,20,40,300,400,500; //Wednesday setarray .price_list4,20,40,300,400,500; //Thursday setarray .price_list5,20,40,300,400,500; //Friday setarray .price_list6,20,40,300,400,500; //Saturday //Stock setarray .amount_list0,1,1,1,1,0; //Sunday setarray .amount_list1,1,1,1,1,0; //Monday setarray .amount_list2,1,1,1,1,0; //Tuesday setarray .amount_list3,1,1,1,1,0; //Wednesday setarray .amount_list4,1,1,1,1,0; //Thursday setarray .amount_list5,1,1,1,1,0; //Friday setarray .amount_list5,1,1,1,1,0; //Saturday //=================================================You can have 127 values per-array, but try to keep each corresponding ID list the same length. Ex: .amount_list2, .price_list2, and shop_list2 can all have 2 values while the others remain at 5. Just as long as the 3 respective lists remain the same length. Each shop_list doesn't need to have the same IDs. Ex: The npc can sell 501,502,503 on Monday, and 1599,2202,2199 on Wednesday.============================================================================OnHour0000: OnInit: Shop inventory is reset on day change, server-reload, and script-reload.============================================================================ If you want the npc to update in real-time, which will increase server-load, but will also show current items in-stock only. ============================================================================ I had a lot of fun making this NPC. Thank you for the very good idea, and if you have any problems keep me posted.
  13. Skorm

    Inventory NPC

    Hmm, ok yeah I think I know what you mean... I like the idea... - shop custom_seller -1,501:50 prontera.gat,95,99,5 script custom seller 100,{ mes "Welcome to my shop!"; for(set .@i,0; getd(".shop_list"+.day+"["+.@i+"]"); set .@i,.@i+1){ mes getitemname(getd(".shop_list"+.day+"["+.@i+"]"))+" ("+(getd(".amount_list"+.day+"["+.@i+"]")?"^007700In-Stock":"^CD0000Out-of-Stock")+"^000000) ["+getd(".amount_list"+.day+"["+.@i+"]")+"]"; } callshop "custom_seller",1; npcshopattach "custom_seller"; end; OnBuyItem: for(set @i,0; getd(".shop_list"+.day+"["+@i+"]"); set @i,@i+1) { for(set @d,0; @d<getarraysize(@bought_nameid); set @d,@d+1){ if(@bought_nameid[@d]==getd(".shop_list"+.day+"["+@i+"]")){ if(Zeny >= (getd(".price_list"+.day+"["+@i+"]")*@bought_quantity[@d])) { if(checkweight(getd(".shop_list"+.day+"["+@i+"]"),((@bought_quantity[@d]>getd(".amount_list"+.day+"["+@i+"]"))?getd(".amount_list"+.day+"["+@i+"]"):@bought_quantity[@d]))){ if(getd(".amount_list"+.day+"["+@i+"]")>0){ set Zeny,Zeny-(getd(".price_list"+.day+"["+@i+"]")*((@bought_quantity[@d]>getd(".amount_list"+.day+"["+@i+"]"))?getd(".amount_list"+.day+"["+@i+"]"):@bought_quantity[@d])); getitem @bought_nameid[@d],((@bought_quantity[@d]>getd(".amount_list"+.day+"["+@i+"]"))?getd(".amount_list"+.day+"["+@i+"]"):@bought_quantity[@d]); setd ".amount_list"+.day+"["+@i+"]",getd(".amount_list"+.day+"["+@i+"]")-((@bought_quantity[@d]>getd(".amount_list"+.day+"["+@i+"]"))?getd(".amount_list"+.day+"["+@i+"]"):@bought_quantity[@d]); } else { dispbottom "I'm sorry but we're currently out of "+getitemname(getd(".shop_list"+.day+"["+@i+"]"))+"s."; } } else { dispbottom "I'm sorry but you can't hold that many "+getitemname(getd(".shop_list"+.day+"["+@i+"]"))+"s."; } } else { dispbottom "I'm sorry you don't have enough money for "+getitemname(getd(".shop_list"+.day+"["+@i+"]"))+"s."; } } } } deletearray @bought_quantity, getarraysize(@bought_quantity); deletearray @bought_nameid, getarraysize(@bought_nameid); close; OnHour0000: OnInit: //=================Configuration================ set .day,gettime(4); //Itemlist setarray .shop_list0,502,503,504,505,506; //Sunday setarray .shop_list1,501,502,503,504,505; //Monday setarray .shop_list2,501,503,504,505,506; //Tuesday setarray .shop_list3,501,502,503,504,505; //Wednesday setarray .shop_list4,502,503,504,505,506; //Thursday setarray .shop_list5,501,502,503,504,505; //Friday setarray .shop_list6,502,503,504,505,506; //Saturday //Pricelist setarray .price_list0,20,40,300,400,500; //Sunday setarray .price_list1,20,40,300,400,500; //Monday setarray .price_list2,20,40,300,400,500; //Tuesday setarray .price_list3,20,40,300,400,500; //Wednesday setarray .price_list4,20,40,300,400,500; //Thursday setarray .price_list5,20,40,300,400,500; //Friday setarray .price_list6,20,40,300,400,500; //Saturday //Stock setarray .amount_list0,100,100,100,100,0; //Sunday setarray .amount_list1,100,100,100,100,0; //Monday setarray .amount_list2,100,100,100,100,0; //Tuesday setarray .amount_list3,100,100,100,100,0; //Wednesday setarray .amount_list4,100,100,100,100,0; //Thursday setarray .amount_list5,100,100,100,100,0; //Friday setarray .amount_list5,100,100,100,100,0; //Saturday //==================By Skorm===================== OnTimer10000: npcshopitem "custom_seller",0,0; // Don't touch any coding beyond here for(set .i,0; getd(".shop_list"+.day+"["+.i+"]"); set .i,.i+1){ if(getd(".amount_list"+.day+"["+.i+"]")){ npcshopadditem "custom_seller",getd(".shop_list"+.day+"["+.i+"]"),getd(".price_list"+.day+"["+.i+"]"); } } initnpctimer; end; }
  14. Just replace countitem with isequipped new_4-2,83,115,4 script Bling 100,{ set .@price,1000000; if(Zeny<.@price){mes "Im sorry but you dont have enough zeny to enchant this."; next; mes "if you are interested in my job"; mes "please bring more zeny."; close;} mes "Hi, you are here"; next; mes "I can enchant your sunnglasses whit a marvelous gem"; mes "with this gem you will be able to unlock a skill"; mes "and use it anytime you want, remebr to keep equiped your sunglasses"; next; mes "the skill gained will depend on your job"; mes "the gainend skill can vary depending on it, thats why diferent jobs gain different skills "; next; mes "Do you wnbt ton enchant your sunnglasses?"; next; switch (select("Enchant Sunglasses:Not for now")) { case 1: mes "Am glad you wish to do this"; mes "ok, Let it Rip Bro!"; next; if(!isequipped(2202)){ mes "ehhh wait a minute dude"; mes "Cant work with this"; next; mes "Please come back"; mes "when you have a sunglasses[1] equiped."; close; } set Zeny,Zeny-.@price; if(getequipid(9)==2202){ .@id = getequipid(9); .@ref = getequiprefinerycnt(9); .@card1 = getequipcardid( 9, 0 ); .@card2 = getequipcardid( 9, 1 ); .@card3 = getequipcardid( 9, 2 ); .@card4 = getequipcardid( 9, 3 ); progressbar "ffff00",4; delitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, .@card4; specialeffect2 101; getitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, 4848; equip .@id; mes "there you go!"; next; mes "here, a coupla mob to try your new skills"; next; atcommand "@monster 1031"; atcommand "@monster 1002"; atcommand "@monster 1062"; atcommand "@monster 1113"; atcommand "@monster 1242"; close; } case 2: // not for now mes "Ok I got it?"; mes "if you change your mind remember"; mes "to equip your sunnies and talk to me!"; close; } // End switch end; }
  15. Oh I didn't think about that. Just move the price check. new_1-2,95,71,4 script Bling 100,{ set .@price,1000000; if(!countitem(2202)){mes "Sorry come back when you get a pair of "+getitemname(2202)+"."; close;} mes "I can endow your glasses with mystical powers, but It'll cost ya z"+.@price+"."; if(select("Yes:No")-1){mes "Alright, thanks anyways!"; close;} if(getequipid(9)==2202){ if(Zeny<.@price){mes "I'm sorry you don't have enough Zeny to for me to endow your specticals, please come back later."; close;} set Zeny,Zeny-.@price; .@id = getequipid(9); .@ref = getequiprefinerycnt(9); .@card1 = getequipcardid( 9, 0 ); .@card2 = getequipcardid( 9, 1 ); .@card3 = getequipcardid( 9, 2 ); .@card4 = getequipcardid( 9, 3 ); delitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, .@card4; getitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, 4848; equip .@id; mes "All done!"; } close; }
  16. Works for me... Try this. new_1-2,95,71,4 script Bling 100,{ set .@price,1000000; if(Zeny<.@price){mes "I'm sorry you don't have enough Zeny to for me to endow your specticals, please come back later."; close;} set Zeny,Zeny-.@price; if(getequipid(9)==2202){ .@id = getequipid(9); .@ref = getequiprefinerycnt(9); .@card1 = getequipcardid( 9, 0 ); .@card2 = getequipcardid( 9, 1 ); .@card3 = getequipcardid( 9, 2 ); .@card4 = getequipcardid( 9, 3 ); delitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, .@card4; getitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, 4848; equip .@id; } end; } I had the slots wrong and there was an extra curly. lol
  17. Skorm

    Refiner

    Try it if you doubt... while( getequiprefinerycnt(.@i) < 10 ) successrefitem .@i; It did exactly what I thought it was going to do. What I'm saying is he might want his items to be +101... because...
  18. Skorm

    Refiner

    I don't think so that would only refine the item to +10... There are commands that go past that. Unless the 101 was just a typo on his part. I would add getequipisenableref(.@i) anyways as a precaution. I don't see why you feel the need to omit that.
  19. Hmm maybe try - script pvpheal -1,{ OnPCDieEvent: detachrid; attachrid(killerrid); if(strcharinfo(3) == "guild_01" || strcharinfo(3) == "guild_02"){ percentheal 100,100; end; } end; }If that still doesn't work it might be the location of the npc.Try changing it to the map your player is located on and making it invisible. I think that sprite is 111... I could be wrong. guild_01,1,1,1 script pvpheal 111,{
  20. After: Add: set .@price,5000; if(Zeny<.@price){mes "I'm sorry you don't have enought Zeny to warp, please try again later."; close;} set Zeny,Zeny-.@price;After: Add: set .@price,5000; if(Zeny<.@price){mes "I'm sorry you don't have enought Zeny to warp, please try again later."; close;} set Zeny,Zeny-.@price;
  21. prontera,95,71,4 script Bling 100,{ set .@price,1000000; if(Zeny<.@price){mes "I'm sorry you don't have enough Zeny to for me to endow your specticals, please come back later."; close;} set Zeny,Zeny-.@price; if(getequipid(7)==2202) .@id = getequipid(7); .@ref = getequiprefinerycnt(7); .@card1 = getequipcardid( 7, 0 ); .@card2 = getequipcardid( 7, 1 ); .@card3 = getequipcardid( 7, 2 ); .@card4 = getequipcardid( 7, 3 ); delitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, .@card4; getitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, 4848; equip .@id; end; } }Why do I feel like you're going to use this for evil...I can't really remember if sunglasses eq on high or mid. It's set to mid for now.
  22. Skorm

    Refiner

    new_1-2,95,71,4 script +101 Refiner 100,{ for ( .@i = 1; .@i <= 10; .@i++ ) { if ( getequipisequiped(.@i) && getequipisenableref(.@i) ) { .@id = getequipid(.@i); .@ref = getequiprefinerycnt(.@i); .@card1 = getequipcardid( .@i, 0 ); .@card2 = getequipcardid( .@i, 1 ); .@card3 = getequipcardid( .@i, 2 ); .@card4 = getequipcardid( .@i, 3 ); delitem2 .@id, 1, 1, .@ref, 0, .@card1, .@card2, .@card3, .@card4; getitem2 .@id, 1, 1, 101, 0, .@card1, .@card2, .@card3, .@card4; equip .@id; } } end; }The problem is that script is using:getitem2 .@id, 1, 1, 101, 0, .@card1, .@card2, .@card3, .@card4; So it's bypassing refine restrictions. Added: && getequipisenableref(.@i) To check if the equipped item can be refined. Also please use [ code][ /code] without spaces when posting scripts.
  23. Edit: Do you want all players to be able to clear the map, or just like GMS? Also added a price on all maps.Edit2: I've added the npc it heals the player if you click once if you double-click it will kill all the monsters. You have to find the cordinates though... If you don't want the double click thing it's really just a way to stop them abusing it. I can remove it. Edit3: added timer. You can modify price in this array. setarray .@price[1], 1000000, 1000000, 1000000, 1000000, 1000000, 1000000, 1000000; Lol someone just posted my script lawls.
  24. Yeah that would probably be best unless you had like 300+ players. Also I wanted to ask how to keep tabs in code posted O_O I remember from eAthena you had to use / that doesn't seem to work here.
×
×
  • Create New...