Jump to content

Fresh prince

Members
  • Posts

    295
  • Joined

  • Last visited

Everything posted by Fresh prince

  1. Sir pats you mean the first 30 can get in but the 31st above will get warp out? Thanks a lot!!
  2. A script that contains a sql query i understand that of course. Your link did not exactly hit home but gave me an idea in how to make one. I saw the source edit as well but didn't need to go that far. Planned just for an event or so. Thanks masters for your attention and directions!
  3. Hello rathena! Im requesting a script that will check the number of your guild members and if it's over 30 members when entering a castle, you will be warped in prontera saying that "your guild members are over the limit". Can you please include and array for certain castles like gondul and sacre altar to be restricted only for my request. Thank you masters!
  4. solution already given .... just edit the value..and recompile. I already did Sir, I edited this #define MAX_EVENTQUEUE 2 to #define MAX_EVENTQUEUE 30 and i recompile. Still having errors. can I combine this two? the anti bot and the getitem patry when the boss is killed? - script Anti Bot -1,{ OnNPCKillEvent: if (killedrid == 1646) { set .@Pam$, strcharinfo(3); getpartymember getcharid(1),1; getpartymember getcharid(1),2; for (set .@i,0; .@i<$@partymembercount; set .@i,.@i+1) { if ( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) ) { attachrid($@partymemberaid[.@i]); if (strcharinfo(3) == .@Pam$) getitem 7086,1; detachrid; } } } end; set @kill,@kill+1; if(@kill >= rand(40,55)) goto Check; end; OnPCLoginEvent: Check: setarray .Map$[0],"prt_maze03","gef_fild06"; if(strcharinfo(3) == .Map$[0] || strcharinfo(3) == .Map$[1]){ //if(getgmlevel() > 40) end; if(checkcart() == 1) set @cart,1; if(checkfalcon() == 1) set @falcon,1; if(checkriding() == 1) set @riding,1; atcommand "@option 2 0 0"; atcommand "@battleignore"; setoption 0x2,1; sc_start sc_berserk, 1000000000, 1; mes "[Anti Bot]"; mes "Bot checking time"; mes "Please input the number you see"; next; switch( rand(1,9) ) { case 1: mes "#################^83F52C##^000000################"; mes "###############^83F52C####^000000################"; mes "#################^83F52C##^000000################"; mes "#################^83F52C##^000000################"; mes "#################^83F52C##^000000################"; mes "#################^83F52C##^000000################"; mes "###############^83F52C######^000000##############"; input @num; if(@num == 1) break; atcommand "@kick "+strcharinfo(0); end; case 2: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "###################^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####################"; mes "############^83F52C##^000000#####################"; mes "############^83F52C#########^000000##############"; input @num; if(@num == 2) break; atcommand "@kick "+strcharinfo(0); end; case 3: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "###################^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; mes "###################^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; input @num; if(@num == 3) break; atcommand "@kick "+strcharinfo(0); end; case 4: mes "############^83F52C##^000000#####################"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "############^83F52C#########^000000##############"; mes "##################^83F52C##^000000###############"; mes "##################^83F52C##^000000###############"; input @num; if(@num == 4) break; atcommand "@kick "+strcharinfo(0); end; case 5: mes "############^83F52C########^000000###############"; mes "############^83F52C##^000000#####################"; mes "############^83F52C##^000000#####################"; mes "############^83F52C#######^000000################"; mes "##################^83F52C##^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "#############^83F52C######^000000################"; input @num; if(@num == 5) break; atcommand "@kick "+strcharinfo(0); end; case 6: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####################"; mes "############^83F52C########^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C######^000000################"; input @num; if(@num == 6) break; atcommand "@kick "+strcharinfo(0); end; case 7: mes "############^83F52C########^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "################^83F52C##^000000#################"; mes "###############^83F52C##^000000##################"; mes "###############^83F52C##^000000##################"; mes "###############^83F52C##^000000##################"; mes "###############^83F52C##^000000##################"; input @num; if(@num == 7) break; atcommand "@kick "+strcharinfo(0); end; case 8: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; input @num; if(@num == 8) break; atcommand "@kick "+strcharinfo(0); end; case 9: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C########^000000##############"; mes "###################^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; input @num; if(@num == 9) break; atcommand "@kick "+strcharinfo(0); end; } next; mes "[Anti Bot]"; mes "Thank you for your patience, you can now move on."; atcommand "@option 0 0 0"; atcommand "@battleignore"; setoption 0x2,0; sc_end sc_berserk; percentheal 100,100; set @kill,0; if(@cart == 1) { setcart; set @cart,0; } if(@falcon == 1) { setfalcon; set @falcon,0; } if(@riding == 1) { setriding; set @riding,0; } close2; end; } } solved thanks.
  5. Yes sir i did. I set it to 50. I have the antibot script, mission hunt by Sir Euphy, and this script. - script #sample -1,{ OnNPCKillEvent: if (killedrid == 2200 || killedrid == 2201) { set .@map$, strcharinfo(3); getpartymember getcharid(1),2; for (set .@i,0; .@i<$@partymembercount; set .@i,.@i+1) { if (attachrid($@partymemberaid[.@i])) { if (strcharinfo(3) == .@map$ && Hp > 0) getitem 607,1; detachrid; } } } end; } These three creates an error and says the event queue is full. Please help
  6. They dont, most are all passive. solved
  7. Hi already did. Still same ty sir Hi already did. Still same ty sir I have sir euphy's mission hunting script too.
  8. - script Anti Bot -1,{ OnNPCKillEvent: if(getgmlevel() > 0) end; set @kill,@kill+1; if(@kill >= rand(200,201)) goto Check; end; OnPCLoginEvent: Check: if(getgmlevel() > 0) end; getmapxy .@map$, .@x, .@y, 0; if (.@map$=="prontera" || .@map$=="morocc" || .@map$=="payon" || .@map$=="geffen" || .@map$=="izlude" || .@map$=="alberta" || .@map$=="aldebaran") end; if(checkcart() == 1) set @cart,1; if(checkfalcon() == 1) set @falcon,1; if(checkriding() == 1) set @riding,1; atcommand "@option 2 0 0"; atcommand "@battleignore"; setoption 0x2,1; sc_start sc_berserk, 1000000000, 1; mes "[Anti Bot]"; mes "Bot checking time"; mes "Please input the number you see"; next; switch( rand(1,9) ) { case 1: mes "#################^83F52C##^000000################"; mes "###############^83F52C####^000000################"; mes "#################^83F52C##^000000################"; mes "#################^83F52C##^000000################"; mes "#################^83F52C##^000000################"; mes "#################^83F52C##^000000################"; mes "###############^83F52C######^000000##############"; input @num; if(@num == 1) break; atcommand "@kick "+strcharinfo(0); end; case 2: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "###################^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####################"; mes "############^83F52C##^000000#####################"; mes "############^83F52C#########^000000##############"; input @num; if(@num == 2) break; atcommand "@kick "+strcharinfo(0); end; case 3: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "###################^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; mes "###################^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; input @num; if(@num == 3) break; atcommand "@kick "+strcharinfo(0); end; case 4: mes "############^83F52C##^000000#####################"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "############^83F52C#########^000000##############"; mes "##################^83F52C##^000000###############"; mes "##################^83F52C##^000000###############"; input @num; if(@num == 4) break; atcommand "@kick "+strcharinfo(0); end; case 5: mes "############^83F52C########^000000###############"; mes "############^83F52C##^000000#####################"; mes "############^83F52C##^000000#####################"; mes "############^83F52C#######^000000################"; mes "##################^83F52C##^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "#############^83F52C######^000000################"; input @num; if(@num == 5) break; atcommand "@kick "+strcharinfo(0); end; case 6: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####################"; mes "############^83F52C########^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C######^000000################"; input @num; if(@num == 6) break; atcommand "@kick "+strcharinfo(0); end; case 7: mes "############^83F52C########^000000###############"; mes "############^83F52C##^000000####^83F52C##^000000###############"; mes "################^83F52C##^000000#################"; mes "###############^83F52C##^000000##################"; mes "###############^83F52C##^000000##################"; mes "###############^83F52C##^000000##################"; mes "###############^83F52C##^000000##################"; input @num; if(@num == 7) break; atcommand "@kick "+strcharinfo(0); end; case 8: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; input @num; if(@num == 8) break; atcommand "@kick "+strcharinfo(0); end; case 9: mes "#############^83F52C#######^000000###############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C########^000000##############"; mes "###################^83F52C##^000000##############"; mes "############^83F52C##^000000#####^83F52C##^000000##############"; mes "#############^83F52C#######^000000###############"; input @num; if(@num == 9) break; atcommand "@kick "+strcharinfo(0); end; } next; mes "[Anti Bot]"; mes "Thank you for your patience, you can now move on."; atcommand "@option 0 0 0"; atcommand "@battleignore"; setoption 0x2,0; sc_end sc_berserk; percentheal 100,100; set @kill,0; if(@cart == 1) { setcart; set @cart,0; } if(@falcon == 1) { setfalcon; set @falcon,0; } if(@riding == 1) { setriding; set @riding,0; } close; } Im having errors like whats below.[Warning]: npc_event: player's event queue is full. I already changed eventqueue in map.h to 50 but still having these problems. I red something about putting "sleep2" Please guide me to optimize this. Thanks
  9. Can skill damage output by homun s can be reduced by lilith's damage cap mod? Thanks
  10. How can you mod this if you want to apply this on 2 or 3 fields/dungeons only? Say prt_maze03, pay_dun03 and gef_fild06 solved
  11. Hi Rathena, I'd like to seek an information about this crash log generated after my server shut down. Kindly please help. ------------------------------------------------------------------------------------- Program terminated with signal 11, Segmentation fault. #0 0x00000000004ace49 in pop_stack (st=0x307601b66e4, start=0, end=-33686019) at script.c:2934 2934 struct script_stack* stack = st->stack; -------------------------------------------------------------------------------------- Thank you very much in advance. Here bt full #0 0x00000000004ace49 in pop_stack (st=0x307601b66e4, start=0, end=-33686019) at script.c:2934 stack = 0xfdfdfdfdfdfdfdfd data = <value optimized out> i = <value optimized out> __FUNCTION__ = "pop_stack" #1 0x00000000004b0370 in run_func (st=0x307601b66e4) at script.c:3481 data = 0x0 i = <value optimized out> end_sp = <value optimized out> #2 0x00000000004ced99 in run_script_main (st=0x307601b66e4) at script.c:3717 c = C_NOP cmdcount = 655351 gotocount = 2048 sd = <value optimized out> stack = 0x3075c7c751c nd = <value optimized out> #3 0x00000000004cf1e1 in run_script_timer (tid=<value optimized out>, tick=<value optimized out>, id=163916, data=<value optimized out>) at script.c:3587 st = 0x307601b66e4 node = 0x3075c7bfb1c sd = 0x0 --------------------------------- Please let me know if someone had a similar experience. Thanks.
  12. Same here, the event starts when you click the poring monsters (even without betting)
  13. After placing the bets, it goes only up to here. OnTimer90000: npctalk "I got "+$prace_bets+" bets. Anyone else?"; end; OnTimer110000: npctalk "The race will start soon. Last chance."; end; the event wont start. No error or anything. also, Mr Capuche what cheat did you remove? Thanks
  14. Hello rathena, is there a way to log the ips of the players for each trade transaction in picklogs? Please help, thanks!
  15. Hello Rathena, I would like to request a script that automatically transfers your item to your storage when you're items exceeded it's allowable count, Say you have 100 different items in your inventory and you are in it's limit, the 101st item would be transferred to your storage automatically instead of disappearing or being dropped. Thanks
  16. Yes, looks like it was recently added. Src/custom folder with .inc files. Im going to add thses later. Btw, is it possible to narrow down its warping coordinates say in a square cell of 15x15? If they use the command, they will only get warped inside the 15x15 square? Thanks Mr.capuche Should be random warp inside aswell to avoid getting in the same cell Thanks again! thanks so much Mr.Capuche!!
  17. Thanks Mr. Capuche, Forgive me for being so ignorant, I could not find scr/custom. Did not know how to add as well, if ever those needs to be added. However, I found a topic similar to what i wanted. I'm wondering if you could add a delay on this kindly. pc->setpos(sd, mapindex_name2id( prontera ), 150, 150, CLR_TELEPORT); //needed to be executed 1st // 2~ 3 seconds delay chat_createpcchat(sd, "waiting for someone", "", 2, 2); //executed last Thanks very much!
  18. pc->setpos(sd, mapindex_name2id( MAP_VIP_LOUNGE ), 0, 0, CLR_TELEPORT); <--- hot to add delay please? chat_createpcchat(sd, "waiting for someone", "", 2, 2);
  19. how'd you add timer dude? im having the same thing, both executes at the same time. Thanks
  20. Anyone that can give me a hand here? Thanks capuche for trying though Capuche's script work but only warps you to a certain spot. What i need is warps you and creates a pub automaticlly saying help, 1/5 so 5 people can get inside the pub. Thanks!
  21. It is like when i for example use a command @question, i will be warped into prontera 150,150 with an automatic pub named "question" so a GM can assist me/us players by seeing ang getting into those pubs one at a time.
  22. Requesting a command that when executed, you will be warped at a certain location (Prontera 200,200) with a chatroom named "question".
  23. Skill require db, find parrying and add books. That should do it
×
×
  • Create New...