Jump to content

sizenine

Members
  • Posts

    149
  • Joined

  • Last visited

Everything posted by sizenine

  1. for(set .@i,0; .@i < getarraysize(getd("$@box_"+.@num+"")); set .@i,.@i+1) { attachrid getd("$@box_"+(.@num)+"["+.@i+"]"); - script - detachrid; } deletearray getd("$@box_"+(.@num)+"[0]"),128; does this look right? it doesnt seem to be working.. no errors either.
  2. i have arrays named: $@box_1[0] $@box_2[0] $@box_3[0] $@box_4[0] $@box_5[0] $@box_6[0] set .@num, rand (1,6); i want to use a variable .@num to call an array in a for loop but the following code won't seem to work: for(set .@i,0; .@i < getarraysize("$@box_"+.@num); set .@i,.@i+1) { attachrid "$@box_"+(.@num)+"["+.@i+"]"; - script - detachrid; } deletearray "$@box_"+(.@num)+"[0]",128; any ideas?
  3. i noticed a bug with your @guildbreak command. when you use the @guildbreak, the guild does not get deleted from the database. with the regular /breakguild, it gets deleted immediately and you can remake the same guild name right away.
  4. use the novending mapflag.. in conf folder
  5. How is that the error? Nothing is wrong with that. ____________ Anyway I found out what was wrong. The addon.php code is supposed to be added to application.php. Maybe you should name it as application.php instead of addon.php
  6. well everytime i try to login (to any website), it always shows that my login was incorrect.
  7. its strictly for browsing, you cant login to web accounts
  8. 1 18 2012-03-17 //Highest Peak Table $hp = Flux::config('FluxTables.HighestPeak'); $sql = "SELECT num_users,peak_date FROM {$server->loginDatabase}.$hp LIMIT 1"; $sth = $server->connection->getStatement($sql); $sth->execute(); $hp = $sth->fetchAll(); ?
  9. Okay, good, I thought it was just me ><! I had the same issue and the problem was on line 40 or so of the actual php script. line 40 of which script? i dont see a php file with up to 40 lines.
  10. First off, thank you for the patch JayPee! However, after applying the patch, my page keeps saying "No Server Highest Peak Found". I checked the sql db though and there is a value stored... it's just not showing on the php.
  11. Since I started using rA (used 3ceam before), I've been getting map servers quite frequently: "Crash signal was sent! Attempting to save all.." I want to help but I'm not sure how to find out the cause of the issue. Any advice? I'm currently on r15689 so I'm pretty up to date too.. I have a feeling it's caused by skills though and I also found these leaks, but I'm not sure if that helps.. Here are the lines in my src... clif.c line 849: 14803 in skill.c function skill_blockpc_start_(): 2280 in skill.c UPDATE: Some more error messages I get from the map server: UPDATE: I've finally pinpointed down to who's causing the crashes. For some reason I don't know why, but only a specific player's character on my server is able to crash the server with her Rune Knight. She has no equips on, no status icons on, nothing. But when she cast skills on monsters, the map server crashes after she kills a few monsters guaranteed, regardless if it was single target skill, AoE skill, or even if it was a Melee attack. Here are some more errors we've encountered through our testing sessions with her character: UPDATE: I think I have pinpointed the cause... >.< Apparently, if you have tax on a guildmember, that taxed character will crash the server when he attacks monsters. And I bumped into some more errors:
  12. oh i see.. i know what printf() is but yeah i probably wouldn't know what the values mean and how to fix it even if i printed out the results..
  13. so i just stick a bunch of "ShowInfo()" between the code lines? BUILDIN_FUNC(useatcmd) { TBL_PC dummy_sd; ShowInfo(); TBL_PC* sd; ShowInfo(); int fd; ShowInfo(); const char* cmd; ShowInfo(); cmd = script_getstr(st,2); if (st->rid) { ShowInfo(); sd = script_rid2sd(st); ShowInfo(); fd = sd->fd; ShowInfo(); } else { //Use a dummy character. ShowInfo(); sd = &dummy_sd; fd = 0; ShowInfo(); memset(&dummy_sd, 0, sizeof(TBL_PC)); ShowInfo(); if (st->oid) { ShowInfo(); struct block_list* bl = map_id2bl(st->oid); ShowInfo(); memcpy(&dummy_sd.bl, bl, sizeof(struct block_list)); ShowInfo(); if (bl->type == BL_NPC) ShowInfo(); safestrncpy(dummy_sd.status.name, ((TBL_NPC*)bl)->name, NAME_LENGTH); ShowInfo(); } ShowInfo(); } // compatibility with previous implementation (deprecated!) if(cmd[0] != atcommand_symbol) { ShowInfo(); cmd += strlen(sd->status.name); ShowInfo(); while(*cmd != atcommand_symbol && *cmd != 0) ShowInfo(); cmd++; } ShowInfo(); is_atcommand(fd, sd, cmd, 2); ShowInfo(); return 0; } lol... like that? i dont know what im doing obviously.
  14. are monsters not supposed to spawn in castles anymore when they are abandoned? for some reason they disappeared after my last svn update. also, i noticed that there is no emperiums/guardian stones when the castle is abandoned unless WoE is on. they used to be there even if WoE was not activated.
  15. Sorry I'm not too familiar with console debug writers".. but I've tried it on actual existing char names and it still crashes the server.
  16. Thanks that seems to have worked but now I found a possible glitch... I've written somewhat of a small script to add a requirement for Emperium when using the command @guild: - script atcmd_sample_inject -1,{ OnInit: bindatcmd("guild", "atcmd_sample_inject::OnAtCmd"); end; OnAtCmd: if (.@atcmd_command$ == "$guild") { end; } if(countitem(714) < 1) { dispbottom "You need the necessary item to create a Guild."; } else { useatcmd "@guild " + .@atcmd_parameters$[0]; } end; } After implementing that script, the @guild command works fine with the item requirement. However, when I try to use #guild <charname> <guildname>, the map server will receive a crash signal. Is there something wrong with my script? Or is this a flaw in the diff?
  17. I'm getting this error: npc.c:784: undefined reference to `aMallocA' from applying this diff by ToastOfDoom.. can anyone help me solve this? http://www.eathena.w...howtopic=272578 Here is part of the src that shows line 784 in npc.c: +int do_atcmd_event (struct map_session_data* sd, const char* command, const char* message, const char* eventname) +{ + struct event_data* ev = (struct event_data*)strdb_get(ev_db, eventname); + struct npc_data *nd; + struct script_state *st; + int i = 0, j = 0, k = 0; + char *temp; + temp = (char*)aMallocA(strlen(message) + 1); + + nullpo_ret(sd); + + if( ev == NULL || (nd = ev->nd) == NULL ) + { + ShowError("npc_event: event not found [%s]n", eventname); + return 0;
  18. i restored the default kafra folder and it worked.
  19. when i try to use svn update in my trunk, it says: svn: Repository moved temporarily to 'http://rathena.svn.sourceforge.net/svn/trunk/npc/kafras'; please relocate what does that mean?
  20. so theres no way to alter the size of a summoned monster in a npc script huh..
  21. i get the same error, i dont think that command is supposed to use a semicolon. script error: "parse_line: expect command, missing function name or calling undeclared function".
  22. Arc, I'm actually using this in your 300 Monster script.. I don't even know how to set this in there when the line has no semi colon to end it. This is what I have: tested it and i get an script error: "parse_line: expect command, missing function name or calling undeclared function". i believe this command is only meant for stand-alone perma mob spawns and not to be used inside npc scripts.
  23. yeah but even so.. it's a permanent spawn. im using this in an instance.. so i only want it to spawn once, won't this keep spawning?
  24. um i didnt test it because i need to use OnMobDeath events. i dont think that works with perma spawns.
×
×
  • Create New...