Jump to content

Ajjwidjdneidjenw

Members
  • Posts

    161
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Ajjwidjdneidjenw

  1. Hello Everyone, I'm kind of stuck with something stupid. I'm trying to get an element out of an array, which works fine. but if I use an if else statement with a question mark operator, it changes the variable I wanted to use by the amount which was set were the statement true ((@menu == 4)?.@a$[@menu-4]@menu == 3)?.@a$[@menu-2]:.@a$[@menu]) for some reason if @menu is not equal to 4, it goes ahead and sets @menu-4(.@a$[@menu-4]). I have no idea why. I tried using getelementofarray instead but it still returns the same issue. Cheers!
  2. Emistry, I looked at your 'IP' map restriction script; isn't it better to use an array, and have a for loop, loop through the maps? (Example below; didn't test) Also, perhaps you could add a Mac restriction for Harmony users. - script Sample -1,{ OnPCLoadMapEvent: for( set .@i,0; set .@i < getarraysize(.Map$); set .@i,.@i+1) { if( strcharinfo(3) == .Map$ ){ query_sql( "SELECT `last_ip` FROM `login` WHERE account_id="+getcharid(3)+"",.@IP ); query_sql( "SELECT `account_id` FROM `login` WHERE last_ip="+.@IP+"",.@Accountlist ); for( set .@i,0; .@i < getarraysize( .@Accountlist ); set .@i,.@i + 1 ) if( isloggedin( .@Accountlist[.@i] ) ) set .@DetectedOnline,.@DetectedOnline + 1; if( .@DetectedOnline > .Limit ){ mes "We detected there is "+.@DetectedOnline+" Users with same IP Logged in."; mes "Please log off these unused account."; close2; warp "prontera",155,181; } } } end; OnInit: // How many User with Same IP can logged in and stay at the specific map set .Limit,2; // What map will be restricted setarray .Map$[0],"payon","morocc","geffen"; for( set .@i,0; set .@i < getarraysize(.Map$); set .@i,.@i+1) setmapflag .Map$[.@i],mf_loadevent; end; } For harmony users you could set last_ip to last_mac.. query_sql "select `last_mac` from `login` where `account_id`='"+getcharid(3)+"'",.@MAC$;
  3. Bumperdy bump Now having a different error, I didn't touch it. [26-Oct-2012 09:41:32 UTC] PHP Notice: Undefined variable: account_id in x/addons/Voteforpoints/themes/default/voteforpoints/index.php on line 29 [26-Oct-2012 09:41:32 UTC] PHP Notice: Undefined variable: session in x/addons/Voteforpoints/modules/voteforpoints/index.php on line 31 [26-Oct-2012 09:41:32 UTC] PHP Notice: Trying to get property of non-object x/addons/Voteforpoints/modules/voteforpoints/index.php on line 31 [26-Oct-2012 09:41:32 UTC] PHP Notice: Trying to get property of non-object in x/addons/Voteforpoints/modules/voteforpoints/index.php on line 31 line 29 to 31 $sql = "SELECT `unblock_time` FROM {$serverLogDB}.{$vp_logs} WHERE account_id=? AND f_site_id=?"; $sth = $serverObj->getStatement($sql); $sth->execute(array($session->account->account_id,$site_id)); Issue has been resolved. A proxy was used at the hosts end.
  4. You can always open a ticket at AsuraHostings website.
  5. Wrong section mate. http://rathena.org/board/forum/21-control-panel-website-and-forum-support/
  6. No, hence I'm asking support. Edit: Cleared browser cache, used a different browser REINSTALLED SQL & VOTE FOR POINTS ADDON . All did not work unfortunatly. This started happening about two days ago. any suggestions?
  7. Hello everyone! It came to my notice, that the flux Control panel returns 'proxy is not allowed' every time, with anyone. I tried to disable the proxy check(changing it from true to false), but it still didn't work. Afterwards I tried to alter the code, simply commenting the part which does the IP check, that works, but I rather have the IP check . Same thing happens for the donation thing, when people donate, and return to the website, they get a blank page and the donation is not processed (had to do it manually). Does anyone have experience with this issue? this started about a few weeks ago. Solved the donation issue cheers! jeroen edit: Error log, returns the following: [22-Oct-2012 19:57:56 UTC] PHP Notice: Undefined offset: 0 in /home/notanot1/public_html/addons/Voteforpoints/modules/voteforpoints/index.php on line 44 [22-Oct-2012 19:57:56 UTC] PHP Notice: Trying to get property of non-object in /home/notanot1/public_html/addons/Voteforpoints/modules/voteforpoints/index.php on line 44 if($ip_address!=0) { $sql = "SELECT `rtid`,`unblock_time`,`ip_address` FROM {$serverLogDB}.{$vp_logs} WHERE f_site_id=? AND unblock_time>? AND ip_address=? ORDER BY unblock_time ASC LIMIT 1"; $sth = $serverObj->getStatement($sql); $sth->execute(array($site_id,$current_time,$ip_address)); $ip_check = $sth->fetchAll(); $diff_time = strtotime($ip_check[0]->unblock_time)-strtotime(date("Y-m-d G:i:s",time())); < Line 44 if(!empty($ip_check)) return strtotime($ip_check[0]->unblock_time); }
  8. Haha, thanks for the reply. Nice to meet you!
  9. Good day! I've been registered for a while now, but as I'm using the... sorry for the interruption: *KITTY GET OUT OF MY SHOEBOX" Just happened. Lets start over. I've been registered for a while now, but as I'm using the rAthena forums more than ever I decided to properly introduce myself. So hi! I'm Jero short for Jeroen, I'm mainly being called Jero on the internet due to the pronunciation of my name being near impossible for foreigners. I'm a 19-year-old IT student from The Netherlands.I have registered on rAthena to obviously get a part of the community, and get more information within scripting and source coding(Really, just reading helps ). I currently run my own server, though it isn't really popular. I also still work as Junior developer at Dark-RO, which really got me into it at some point. I am not here to ask for help about every small thing I don't know about ,if I want to know something I'd read up on it, there's enough sources on the internet; though if I can't figure it out, it is good to know there are great members on rAthena which over a good hand (+ still need to read the manual properly). Re-reading this I sound weird, but whatever; you got the point. During my 'normal' time, I'm a Metal head (into the alterantive music etc). I visit concerts, Festivals, enjoy drinking with friends etc etc. I also have work, school and all kinds of other stuff (I go to the gym, because really I need to lose some effing weight XD). I'll be around more frequently from now on. Thanks for reading! V Me, friends & Vocalist of August burns red @ Graspop 2012 Belgium.
  10. Can't find the newest files in the GRF's, should be sufficient information . Edit: I ran a patcher that was in an RO folder in my program files which seems to be running, I'll wait untill that completes. Lets see how far this gets. Thanks!
  11. No GPF files, and no my thing is not being updated. I already have a new miruku instalation (I have multiple folders actually ) I just get 'getting patch8.txt', which afterwards it says it has been completed.
  12. Hello Everyone! I was wondering, if I run my RSU patchers it always mentions it has been completed without actually updating. I find this hard to believe. Does anyone have a solution for this?
  13. Interesting; I didn't know select returned an @menu variable. I really should read the manual lmao. found it
  14. Just wondering it was possible to do something like this, instead of defining cases indifidually. I am currently unable to test, hence I'm asking. switch(select( "Start from Beggining ["+.lifecost[0]+"]:"+ ((.unlock && @lives > .lifecost[1])?"Start from flag 1 ["+.lifecost[1]+"]:":":")+ ((.unlock > 1 && @lives > .lifecost[2])?"Start from flag 2 ["+.lifecost[2]+"]:":":")+ ((.unlock > 2 && @lives > .lifecost[3])?"Start from flag 3 ["+.lifecost[3]+"]:":":")+ "Quit") ) for(set .@i,1; .@i < 5, set .@i, .@i+1) { case .@i: set @lives,@lives-.lifecost[(.@i-1)]; atcommand "@alive "+strcharinfo(0); dispbottom "You have "+@lives+" Lives left"; warp "hellfire",.hellwarp[.@i],.Hellwarp[.@i+1]; break; edit: There we go.
  15. mistry, you can't just job change into an acolyte, create a new character for crying out loud. Anyway, because I'm a super cool guy(and I needed a reason to spam in this topic) I ran the script and got this returned. 'unknown syntax in file, line 8' guild_vs1.gat<tab>Mapflag<tab>noteleport figures there are no tabs. I am not going to re-tab that file
  16. prontera,164,172,4 script 3rd Class items 130,{ mes "3rd Class Item Warper"; mes "Hello,"; mes "Would you like to go to the 3rd Class Item shops"; if(select("Yes please:No Thanks") ==2) close; close2; warp "mora",121,179; end; } /* mora,115,184,4 shop RK & GX shop 946,127172000,127182000,127192000,127202000,127212000,127212000,127222000,127232000,127242000,127252000,127262000,127272000,127282000,127295000000,127302000,127315000000,127322000,127331000000 mora,118,184,4 shop Warlock shop 743,6189100000,6190100000,6191100000,6192100000,6193100000,6194100000,6197100000,6198100000,6199100000,6200100000,6201100000,6202100000,6203100000,6204100000,6205100000 mora,121,184,4 shop Mechanic shop 813,154910000,213920000,2800100000,2801100000,2802500000,2803100000,2804100000,2805100000,2806150000,2807200000,280825000 mora,123,184,4 shop Mechanic Ammo 813,6145100,6146300,6147100,12392220,12393500,123941100,18000100,18001200,18002200,18003200,18004500 mora,125,184,4 shop Genetic shop 731,6210100,6211100,6212100,62131000,62141000,62151000,62162000,62174000,6244100,6245100,6246100,6247100,6248600,6249100,6253100,6254100,6255500,6256100,6257100 mora,127,184,4 shop Genetic Shop 2 731,6258800,6259100,6260100,6261500;6262400,6263100,6264100,6265100,62791000,62801000,62811000,62821000,62831000,62841500,62851000,6297100,1102210000,1102310000,1102410000 */ Try that, commented the shops as the shops aren't tabbed, the values are probably too high (no way there are item ids like that ) and overall in the wrong formal. Here's a working example: morocc,163,96,5 shop Super Tool Dealer#01::STD 855,1750:-1,1770:-1,1752:-1,1751:-1;
  17. Mika, you need to update to the latest version of KRO, also the odds are great they are in the rdata.grf. What is the name of the map on the second dimensional gab? I want to use that; it looks amazing! PS: @ mika GET YOUR BUTT BACK TO DARK-RO D:<. -Jeroen
  18. Small tip! If you use an if statement and there's only 1 command afterwards you don't have to use curly brackets. Example: Your script: if (isequipped(2550)) { //Fisher's_Muffler set .@fcast,.@fcast - 3; }; What you can do instead. if (isequipped(2550)) set .@fcast,.@fcast-3; //Fisher's Muffler.
  19. Oh sorry my bad, there's suppored to be an End after warp .
  20. You can interact with a hidden NPC, can't you? So its better to disable the NPC.
  21. location,X,Y,D script warp_name 45,2,2,{ OnTouch: mes "["+strcharinfo(0)+"]"; mes "This place stinks, lets get out!"; close2; warp map,x,y; } That should do it . As for the first issue, I don't quite understand what you mean.
  22. I mentioned the download link was dead I have an idea for an event on my server, but I need to map to make it. otherwise I need to find another map. Is there any recommended map where you need to get from Point A to point B(size: Medium - Big)? Edit: I emailed the user who created the map, and he sent me a download link! http://www.mediafire.com/?an4766b4c9rtwkv
  23. Hello Everyone! I was wondering if this map was still available somewhere. It's looking so great that I'm willing to use it, just to find out the link is dead. I'm talking about this map http://www.eathena.w...howtopic=272875 Thanks! Jeroen
×
×
  • Create New...