Jump to content

Cyro

Members
  • Posts

    1138
  • Joined

  • Last visited

  • Days Won

    30

Everything posted by Cyro

  1. Recheck the line you added, also place tab instead of spaces
  2. Cyro

    slotter

    starter,89,109,6 script Headgear Socket 525,{ mes "Which Headgear you want to Enchant ?"; mes "Make sure there is no Card / Rune in it."; mes "10% Maybe Ur Headgear Process Failed."; next; setarray .EquipID[0],31018,31019,31020,31021,31022,31023,31024,31025,31026,31027,31028,31029,31030,31051,31052,31053,31054,31055,31056,31057,31058,31059,31060; for( set .@i,0; .@i < getarraysize( .EquipID ); set .@i,.@i + 1 ) set .@EquipMenu$,.@EquipMenu$ + getitemname( .EquipID[.@i] )+( !getitemslots(.EquipID[.@i])?"":"["+getitemslots(.EquipID[.@i])+"]" )+":"; set .@Equip,select( .@EquipMenu$ ) - 1; if( !countitem( .EquipID[.@Equip] ) ){ mes "You didnt have this Equipment with you."; close; } mes "Equipment : ^FF0000"+getitemname( .EquipID[.@Equip] )+"^000000"; switch( select( "Assassin:Monk:Blacksmith:Sage:Hunter:Bard Dancer:Knight:Priest:Crusader:Wizard:Alchemist:Gunslinger:Ninja:Rogue:Soulinker:Taekwondo" )){ Case 1: setarray .RuneID[0],22000; break; Case 2: setarray .RuneID[0],22001; break; Case 3: setarray .RuneID[0],22002; break; Case 4: setarray .RuneID[0],22003; break; Case 5: setarray .RuneID[0],22004; break; Case 6: setarray .RuneID[0],22005; break; Case 7: setarray .RuneID[0],22006; break; Case 8: setarray .RuneID[0],22007; break; Case 9: setarray .RuneID[0],22008; break; Case 10: setarray .RuneID[0],22009; break; Case 11: setarray .RuneID[0],22010; break; Case 12: setarray .RuneID[0],22011; break; Case 13: setarray .RuneID[0],22012; break; Case 14: setarray .RuneID[0],22013; break; Case 15: setarray .RuneID[0],22014; break; Case 16: setarray .RuneID[0],22015; break; } for( set .@i,0; .@i < getarraysize( .RuneID ); set .@i,.@i + 1 ) set .@RuneMenu$,.@RuneMenu$ + getitemname( .RuneID[.@i] )+":"; set .@Rune,select( .@RuneMenu$ ) - 1; mes "Rune : ^FF0000"+getitemname( .RuneID[.@Rune] )+"^000000"; mes "Cost : ^FF0000"+( 500 * .@Rune )+"^000000 CASHPOINTS"; next; if( select("Confirm:Cancel") == 1 ){ if( #CASHPOINTS < ( 500 * .@Rune ) ){ mes "You required "+( 500 * .@Rune )+" CASHPOINTS."; }else{ set #CASHPOINTS,#CASHPOINTS - ( 500 * .@Rune ); delitem .EquipID[.@Equip],1; if( rand(100) < 10 ){ mes "Sorry Enchant Process Failed. Both Equipment and CASHPOINTS lost."; }else{ getitem2 .EquipID[.@Equip],1,1,0,0,0,0,0,.RuneID[.@Rune]; mes "Done."; mes "^0000FF"+getitemname( .EquipID[.@Equip] )+"^000000"; mes "Enchanted with ^FF0000"+getitemname( .RuneID[.@Rune] )+"^000000"; } } } close; }
  3. new_1-1 mapflag pvp just load this as normal script or add line in npc/mapflag/pvp.txt
  4. you can set any map as a pvp map using mapflags example pvp_y_1-2 mapflag pvp https://github.com/rathena/rathena/blob/master/doc/mapflags.txt
  5. based on your server location requirement you can chose your server, every one have personal choices Digital ocean, OVH is multi million companies, where most of them prefer to host from, even ragnarok hosting companies buy and resell from here so i recommend Do if you looking for Asia go with - DO US - OVH UK - Aruba GOod luck
  6. there is various reasons which may cause this it might be causing because of your number of high script base/ source code errors?! try looking at console after executing @reloadscript! the more scripts/errors/warnings compiler/console executes the more time it takes also bandwidth,location of the server and user
  7. good to hear, on last note edit your posts and place your code in codec box insted of quote , whoch makes it look clean for future reference
  8. pasting your application.php and servers.php and logs here would be helpful
  9. make sure your access and port deatils of mysql in fluxcp servers.php recheck 3306 port is opened you can try changing the wait_timeout option within your mysql.ini file.
  10. nope, its script based command, must be working , no need add anywhere else
  11. try that script , i have added @rfyl command for 99 level gms to start the event
  12. prontera,141,172,5 script RFYL Event 100,{ if ( getgmlevel() < 99 ) end; donpcevent "runordie::Onmanually"; end; } prontera,141,170,5 script Run Or Die 100,{ set .@size, getarraysize( getvariableofnpc( .aid, "runordie" ) ); if ( .@size >= 100 ) { mes "I'm sorry, the room is full"; close; } percentheal 100, 100; warp "guild_vs5", 0, 0; set getvariableofnpc( .aid[ .@size ], "runordie" ), getcharid(3); end; } - script runordie -1,{ OnInit: disablenpc "Run Or Die"; bindatcmd "rfyl",strnpcinfo(3)+"::OnRFYL"; end; OnRFYL: if ( getgmlevel() < 99 ) end; else if ( compare( @whispervar0$ , "debug" ) ) { dispbottom "Player left: "+ getarraysize(.aid); end; } else if ( compare( @whispervar0$, "on" ) == 0 ) end; Onmanually: enablenpc "Run Or Die"; deletearray .aid; mapwarp "guild_vs5", "prontera", 142,170; killmonsterall "guild_vs5"; set .stop, 1; disablenpc "RFYL Event"; announce "Run Or Die!!!: Are you ready to join the Run Or Die Event?", 0; sleep 4000; announce "Run Or Die: For those who wants to join please '@warp prontera 142 170' to participate", 0; sleep 6000; announce "Run Or Die: Registration NPC will disappear after 1 minute", 0; sleep 20000; announce "Run Or Die: Last 30 second", 0; sleep 10000; announce "Run Or Die: Make it fast, type in '@warp prontera 142 170' to join", 0; sleep 10000; announce "Run Or Die: Last 10 seconds to register", 0; sleep 5000; announce "Run Or Die: 5", 0; sleep 1000; announce "Run Or Die: 4", 0; sleep 1000; announce "Run Or Die: 3", 0; sleep 1000; announce "Run Or Die: 2", 0; sleep 1000; announce "Run Or Die: 1", 0; sleep 1000; announce "Run Or Die: Time is up...I will come again 3 hour later..", 0; disablenpc "Run Or Die"; mapannounce "guild_vs5", "Welcome to Run Or Die event", 0; sleep 3000; mapannounce "guild_vs5", "This is just an easy event", 0; sleep 3000; mapannounce "guild_vs5", "Just stay AWAY from the PORING BOMBS!!", 0; sleep 3000; mapannounce "guild_vs5", "Stay alive as long as YOU CAN!!!!", 0; sleep 3000; mapannounce "guild_vs5", "The LAST SURVIVOR will be the WINNER", 0; sleep 3000; mapannounce "guild_vs5", "event will start in 3", 0; sleep 1000; mapannounce "guild_vs5", "2...", 0; sleep 1000; mapannounce "guild_vs5", "1...", 0; sleep 1000; mapannounce "guild_vs5", "It's time to run !!", 0; donpcevent "runordie::Onstart"; set .stop, 0; while ( .stop == 0 ) { set .@extra, .@extra + rand(1,2); set .@round, .@round +1; monster "guild_vs5", 0,0, "Come On Baby!!!", 1904, 2 + .@extra, 0; monster "guild_vs5", 0,0, "Come On Baby!!!", 1904, 2 + .@extra, 2; monster "guild_vs5", 0,0, "Come On Baby!!!", 1904, 2 + .@extra, 4; sleep 5000; } end; Onstart: while ( getarraysize(.aid) > 1 ) { sleep 500; for ( set .@i, 0; .@i < getarraysize(.aid); set .@i, .@i +1 ) { if ( isloggedin(.aid[.@i]) == 0 ) { deletearray .aid[.@i], 1; set .@i, .@i -1; } else { attachrid .aid[.@i]; if ( strcharinfo(3) != "guild_vs5" || hp == 0 ) { deletearray .aid[.@i], 1; set .@i, .@i -1; } } } } detachrid; set .stop, 1; killmonsterall "guild_vs5"; if ( getarraysize(.aid) == 1 ) { announce "Congratulations!!! The Winner is "+ rid2name(.aid), 0; sleep 5000; announce rid2name(.aid) +" Win 100 Budots Coin", 0; attachrid .aid; getitem 9524, 100; // winner prize warp "prontera", 156,180; deletearray .aid; } else { announce "Nobody WINS, too bad", 0; } enablenpc "RFYL Event"; end; } guild_vs5 mapflag nowarp guild_vs5 mapflag nowarpto guild_vs5 mapflag noteleport guild_vs5 mapflag nosave SavePoint guild_vs5 mapflag noskill guild_vs5 mapflag nomemo guild_vs5 mapflag nopenalty just added comamnd to the existing RFYL script use @rfyl
  13. Job: Equippable jobs. Uses the following bitmask table: (S.) Novice (2^00): 0x00000001 Swordman (2^01): 0x00000002 Magician (2^02): 0x00000004 Archer (2^03): 0x00000008 Acolyte (2^04): 0x00000010 Merchant (2^05): 0x00000020 Thief (2^06): 0x00000040 Knight (2^07): 0x00000080 Priest (2^08): 0x00000100 Wizard (2^09): 0x00000200 Blacksmith (2^10): 0x00000400 Hunter (2^11): 0x00000800 Assassin (2^12): 0x00001000 Unused (2^13): 0x00002000 Crusader (2^14): 0x00004000 Monk (2^15): 0x00008000 Sage (2^16): 0x00010000 Rogue (2^17): 0x00020000 Alchemist (2^18): 0x00040000 Bard/Dancer (2^19): 0x00080000 Unused (2^20): 0x00100000 Taekwon (2^21): 0x00200000 Star Gladiator (2^22): 0x00400000 Soul Linker (2^23): 0x00800000 Gunslinger (2^24): 0x01000000 Ninja (2^25): 0x02000000 Gangsi (2^26): 0x04000000 Death Knight (2^27): 0x08000000 Dark Collector (2^28): 0x10000000 Kagerou/Oboro (2^29): 0x20000000 Rebellion (2^30): 0x40000000 Summoner (2^31): 0x80000000 Novice + Swordman + Magician + Archer = 0x0000000F, why? Because: 10 = A, 11 = B, 12 = C, 13 = D, 14 = E, and 15 = F It's using hexadecimal.
  14. change this if (Zeny < 200) goto no_zeny; else set Zeny, Zeny - 200; to if (Zeny < (@identify * 200)) goto no_zeny; else set Zeny, Zeny - (@identify * 200);
  15. This is whole script? Where is line Set #ROK_POINTS
  16. make one accid.lub and accnme.lub for all your items and place it first data.ini reading grf
  17. you can add .diff .patch files https://github.com/rathena/rathena/wiki/diff
  18. its just an example, so u can use it as ur need in your script u can set Set @sold_nameid1 itemid1; Set @sold_nameid2 itemid2; countitem(@sold_nameid)<10 || countitem(@sold_nameid); delitem @sold_nameid1,10; delitem @sold_nameid2,10;
  19. plugin system is not not supported by rathena (may be in future?)
  20. switch(select("prontera:geffen:")){ case 1: if(countitem(512)<10 || countitem(513)<5); warp "prontera" ,1,1; break; case 2; if(countitem(514)<10 || countitem(516)<5); warp "geffen" ,1,1; break;
  21. set map1,getmapusers("guildvs3"); OnMinute01: OnMinute02: OnMinute05: OnMinute10: OnMinute15: OnMinute20: OnMinute25: OnMinute30: OnMinute35: OnMinute40: OnMinute45: OnMinute50: OnMinute55: OnMinute00: announce "Total of "+.@map1+" Players in this Map.",0; if(map1 >= 0); mes "All ther players in map is dead!"; end;
  22. Four thousand three hundred fifteen
×
×
  • Create New...