Jump to content

Brian

Members
  • Posts

    2223
  • Joined

  • Last visited

  • Days Won

    24

Posts posted by Brian

  1. Then you'd also have to change the existing variables already saved in SQL ...

     

    Run these 2 SQL queries while your server is offline:

    INSERT INTO global_reg_value (char_id,str,`value`,`type`,account_id) 
    SELECT 0,CONCAT('#',global_reg_value.str),`value`,2,`char`.account_id 
    FROM global_reg_value LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id 
    WHERE global_reg_value.account_id=0 AND global_reg_value.str LIKE 'state_%';
    
    DELETE FROM global_reg_value WHERE str LIKE 'state_%';
    
  2. #lastwarp and #lastwarp_array only store the last warp info.

    The unlocked status for each dungeon is stored in 50 state_*dun_***** variables.

    Search ".@stateName$" (52 hits in 1 file)
      D:\Users\Brian\Desktop\loki_warper.txt (52 hits)
    	Line 664:     	set .@state, getd(.@stateName$);
    	Line 733: 							setd .@stateName$,.@playerChoice;
    	Line 1097: 		set .@stateName$,"state_gdun_ald";
    	Line 1108: 		set .@stateName$,"state_gdun_gef";
    	Line 1119: 		set .@stateName$,"state_gdun_prt";
    	Line 1130: 		set .@stateName$,"state_gdun_pay";
    	Line 1160: 		set .@stateName$,"state_dun_abyss";
    	Line 1178: 		set .@stateName$,"state_dun_amatsu";
    	Line 1195: 		set .@stateName$,"state_dun_abyss";
    	Line 1211: 		set .@stateName$,"state_dun_ayothaya";
    	Line 1225: 		set .@stateName$,"state_dun_beach";
    	Line 1237: 		set .@stateName$,"state_dun_clock";
    	Line 1270: 		set .@stateName$,"state_dun_coal";
    	Line 1288: 		set .@stateName$,"state_dun_culvert";
    	Line 1308: 		set .@stateName$,"state_dun_abbey";
    	Line 1329: 		set .@stateName$,"state_dun_dim";
    	Line 1345: 		set .@stateName$,"state_dun_einbroch";
    	Line 1359: 		set .@stateName$,"state_dun_gefenia";
    	Line 1379: 		set .@stateName$,"state_dun_geffen";
    	Line 1399: 		set .@stateName$,"state_dun_glast";
    	Line 1452: 		set .@stateName$,"state_dun_gonryun";
    	Line 1470: 		set .@stateName$,"state_dun_hidden";
    	Line 1489: 		set .@stateName$,"state_dun_ice";
    	Line 1507: 		set .@stateName$,"state_dun_juperos";
    	Line 1525: 		set .@stateName$,"state_dun_kiel";
    	Line 1540: 		set .@stateName$,"state_dun_biolab";
    	Line 1560: 		set .@stateName$,"state_dun_louyang";
    	Line 1579: 		set .@stateName$,"state_dun_nidhoggur";
    	Line 1598: 		set .@stateName$,"state_dun_malaya";
    	Line 1608: 		set .@stateName$,"state_dun_magma";
    	Line 1623: 		set .@stateName$,"state_dun_moscovia";
    	Line 1642: 		set .@stateName$,"state_dun_niflheim";
    	Line 1656: 		set .@stateName$,"state_dun_odin";
    	Line 1675: 		set .@stateName$,"state_dun_orc";
    	Line 1690: 		set .@stateName$,"state_dun_payon";
    	Line 1715: 		set .@stateName$,"state_dun_poring";
    	Line 1728: 		set .@stateName$,"state_dun_pyramid";
    	Line 1755: 		set .@stateName$,"state_dun_rachel";
    	Line 1780: 		set .@stateName$,"state_dun_sphinx";
    	Line 1804: 		set .@stateName$,"state_dun_sunken";
    	Line 1819: 		set .@stateName$,"state_dun_thantaos";
    	Line 1868: 		set .@stateName$,"state_dun_thor";
    	Line 1887: 		set .@stateName$,"state_dun_toy";
    	Line 1902: 		set .@stateName$,"state_dun_turtle";
    	Line 1923: 		set .@stateName$,"state_dun_umbala";
    	Line 1938: 		set .@stateName$,"state_dun_undersea";
    	Line 1965: 		set .@stateName$,"state_dun_scaraba";
    	Line 1982: 		set .@stateName$,"state_dun_mist";
    	Line 1992: 		set .@stateName$,"state_dun_malangdo";
    	Line 2004: 		set .@stateName$,"state_dun_brasilis";
    	Line 2018: 		set .@stateName$,"state_dun_dewata";
    	Line 2031: 		set .@stateName$,"state_dun_yggdrasil";
    

    To change the unlocking to per-account, edit lines 664 and 733 to this:

    set .@state, getd("#"+.@stateName$);
    setd "#"+.@stateName$,.@playerChoice;
    Then you'd also have to change the existing variables already saved in SQL ...
  3. 1. make sure all characters on that account are logged out

    2. execute this SQL query

    DELETE FROM `storage` WHERE account_id=2001122;
    (replace 2001122 with the account_id of the storage you want to erase)
  4. Thanks for help  /thx  , but after tested  both was not working

    I found the function that sends normal chat messages (those are the messages right? where you can double click their name and it will paste in the Whisper To box?)

    trunk/src/map/clif.c clif_parse_GlobalMessage

    	// send message to others (using the send buffer for temp. storage)
    	WFIFOHEAD(fd, 8 + textlen);
    	WFIFOW(fd,0) = 0x8d;
    	WFIFOW(fd,2) = 8 + textlen;
    	WFIFOL(fd,4) = sd->bl.id;
    	safestrncpy((char*)WFIFOP(fd,8), is_fake ? fakename : text, textlen);
    	//FIXME: chat has range of 9 only
    	clif_send(WFIFOP(fd,0), WFIFOW(fd,2), &sd->bl, sd->chatID ? CHAT_WOS : AREA_CHAT_WOC);
    
    Maybe you could make a new script command that used this code, but instead of AREA_CHAT_WOC, send to ALL_CLIENT.
  5. I think the announce script command does the equivalent of a "nameless broadcast" (GM client command /nb).

    /nb sends the name differently than /b (broadcast with name).

    Edit: oops, @broadcast and 'announce' both use intif_broadcast

    	sprintf(atcmd_output, "%s: %s", sd->status.name, message);
    	intif_broadcast(atcmd_output, strlen(atcmd_output) + 1, 0);
    
  6. Depending on what "PVP Ladder" script you are using, the kills and/or deaths may be stored in different variables. Look at your PVP Ladder script and figure out what variable(s) the kills are stored in. Then delete those variables for every player.

    • Upvote 1
  7. Try removing the 'sleep2' and see if it still happens.

    If the [Warning] still happens, you could do something like:

    • script does the rand() check
    • if it's going to Bot Check them, first set a temporary char variable
      set @is_bot_check, 1;
    • add a check right after OnNPCKillEvent so if (@is_bot_check == 1), meaning they are in the middle of a both check, then the script won't try to check them again at the same time
    • at the end of your script, right before 'close'
      set @is_bot_check, 0;
    • Upvote 1
  8. After having a conflict, I used the SVN Resolved.

     

    You have to edit the file and actually resolve the conflict!

    Just typing/clicking SVN Resolved only remove the Conflict flag, it does not edit the conflict (unless you click "Resolve conflicts using mine" or "Resolve conflicts using theirs".

    • Upvote 1
  9. There is a bug. If you have a post with a [ code] box which contains more than one line the line breaks are removed when you edit that post. (Occured in bug tracker - dunno if this happens in forum, too.)

    hmm it might be a bug with the Bug Tracker.

    Something similar happened on IPS's bug tracker (even though they are not using IP.Tracker)

    Does it still happen if you use Preview first? and are you using the plain text or rich text editor?

  10. plss help me as soon as possible.

     

    Do you feel like sharing any other details about your error, or perhaps a screenshot?

    or just that it's a "critical error" ?

    Turn on $showExceptions to view the full details of the error.

    /fluxcp/config/error.php

    $showExceptions  = true;              // Whether or not to show exceptions (only applies to error.php)
    
  11. Yes, every single map needs the loadevent mapflag in order to trigger OnPCLoadMapEvent ... unless you did one of these source edits

    1) when maps are loaded, loadevent mapflag is added to every map

    2) change OnPCLoadMapEvent to trigger on all maps, even if they don't have the loadevent mapflag

    It looks like (almost) all your maps in .@mapname$[] are already listed in trunk/conf/mapflag/town.txt right? Then you could just check mapflag#town.

    -	script	undisguise_me	-1,{
    OnPCLoadMapEvent:
    	if (!getmapflag(strcharinfo(3), mf_town)) {
    		undisguise;
    	}
    	end;
    }
    
    • Upvote 1
×
×
  • Create New...