Jump to content
  • 0

Question

16 answers to this question

Recommended Posts

Posted

One way would be an OnPCLoadMapEvent script, that announces with a fontColor and fontSize.

announce "<text>",<flag>{,<fontColor>{,<fontType>{,<fontSize>{,<fontAlign>{,<fontY>}}}}};
You could get the map names from /data/mapnametable.txt

 

 

The icons on the minimap are probably done by editing the .bmp images in

/data/texture/À¯ÀúÀÎÅÍÆäÀ̽º/map/

Posted (edited)

One way would be an OnPCLoadMapEvent script, that announces with a fontColor and fontSize.

Here you go:

1. edit trunk/src/map/clif.c so OnPCLoadMapEvent always triggers, even if maps do not have the 'loadevent' mapflag.

Find these lines:

	if(map[sd->bl.m].flag.loadevent) // Lance
		npc_script_event(sd, NPCE_LOADMAP);
and change to look like this:
	npc_script_event(sd, NPCE_LOADMAP);
 

2. load this script: where_am_i.txt

(I commented out maps that did not have an English translation in mapnametable.txt, so there will be no announcement when you load on those maps.

Edited by Brian
  • Upvote 1
Posted

i try to load the script. i got error.

[Error]:  Loading NPC file: npc/1.test/mapannoucement.txt
script error on npc/1.test/mapannoucement.txt line 17
    parse_callfunc: not enough arguments, expected ','
    12 :        set .06guild_05$, "Guild War Arena";
    13 :        set .06guild_06$, "Guild War Arena";
    14 :        set .06guild_07$, "Guild War Arena";
    15 :        set .06guild_08$, "Guild War Arena";
    16 :        set .06guild_r$, "Guild War Arena - Waiting Room";
*   17 :        set .1'@'cash$, "Octopus Cave";
    18 :        set .1@cata$, "Catacomb";
    19 :        //set .1@ecl$, "┐í┼¼╢≤┴Ω │╗║╬";
    20 :        //set .1@lhz$, "║╕╕ú╝╝║Ω└╟ ┐¼▒╕╜╟";
    21 :        set .1@ma_b$, "Bakonawa Hideout";
    22 :        set .1@ma_c$, "Buwaya Cave";
Posted

If you choose not to edit clif.c, then you need to write a mapflag script that sets the 'loadevent' mapflag on every map (or every map where you want the map name to be announced when you enter).

Posted (edited)

One way would be an OnPCLoadMapEvent script, that announces with a fontColor and fontSize.

Here you go:

1. edit trunk/src/map/clif.c so OnPCLoadMapEvent always triggers, even if maps do not have the 'loadevent' mapflag.

Find these lines:

	if(map[sd->bl.m].flag.loadevent) // Lance
		npc_script_event(sd, NPCE_LOADMAP);
and change to look like this:
	npc_script_event(sd, NPCE_LOADMAP);
 

2. load this script: where_am_i.txt

(I commented out maps that did not have an English translation in mapnametable.txt, so there will be no announcement when you load on those maps.

Any eA-compatible script please?

 

I haven't tried it, but I know for a fact that the method of setting variables shown in the script is an rA thing. :|

EDIT: Nvm, misread. I tried it now and the script still doesn't work for eA though.

 

Edited by rqueen
Posted

Well the script is working but it doesnt show in game. I mean no errors on script but it doesnt show in game, i edited clif.c btw

the script works fine for me.

Posted

Well the script is working but it doesnt show in game. I mean no errors on script but it doesnt show in game, i edited clif.c btw

the script works fine for me.

 

this script not works on hercules.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...