I would like to know what's the script that send the message when the mob hasn't items or gold. thanks your attemption
What's the script: Target has no items or gold?
#1
Posté 02 mai 2014 - 01:03
#2
Posté 02 mai 2014 - 02:13
- WhiteTiger aime ceci
#3
Posté 02 mai 2014 - 04:14
Can't we customize the message?
#4
Posté 02 mai 2014 - 06:51
Can't we customize the message?
Not really, even if this would be possible via NWNX, for any custom texts you need haks - tlk to be specific but either way something that players must download.
- WhiteTiger aime ceci
#5
Posté 02 mai 2014 - 09:39
- WhiteTiger aime ceci
#6
Posté 02 mai 2014 - 12:13
Honestly WhiteTiger, you are lately coming with so many ideas that all have a one thing common. They need to incorporate haks into your module.
If you already have an established playerbase - and you have, there is almost no point of sticking hakless.
- WhiteTiger aime ceci
#7
Posté 02 mai 2014 - 04:03
Proleric: It's line 10690 in dialog.tlk, which is probably hard-coded, as it's not referenced by any script or 2da. You can change it with tlkedit.
I searched for line 10690 and I found the text. I am using TlkEditR13b.
Shadooow: Honestly WhiteTiger, you are lately coming with so many ideas that all have a one thing common. They need to incorporate haks into your module.
Yeah, it is. To run my module we need to use NWNX, MySQL, Website, Override Files, Community Patch 1.71, why not to add a Hak to this list?
A small thing in a big thing. Heh.
I would like to have a few more reasons to do so with hakpaks. When I get enough reasons, will be so many and I probably do not will add because this will be something overworked XD
Thank you Lightfoot8, Shadooow and Proleric.
#8
Posté 02 mai 2014 - 06:59
You don't need a hak for this, or even a tlk number reference. Use nwnx_events to override. See the linked events script by way of example, which you can specify in the plugin ini or sh. This particular event script is a modification of the one that ships with the linux version of SIMTools, but you don't need SIMTools for this.
Funky
- WhiteTiger aime ceci
#9
Posté 02 mai 2014 - 11:37
how intersting! so, using nwnx_events can I customize the "Target has no items or gold" message or two differents messages will appear at the same time?
Example:
1: •Target has no items or gold!• (Default)
2: Target has nothing! (Custom)
#10
Posté 03 mai 2014 - 12:02
BypassEvent(); prevents the normal event from running at all, including the default message. You can substitute whatever you like, including no message at all if you prefer, in code. Take a look at the EVENT_TYPE_PICKPOCKET case. All of this code runs prior to the normal event, so if you fire off BypassEvent, only things you've coded will happen. You can also allow fallthrough to the normal event, should you so desire.
Funky
- WhiteTiger aime ceci
#11
Posté 03 mai 2014 - 12:49
//EDITED
You can also allow fallthrough to the normal event, should you so desire.
OK, thank you very much.
Modifié par WhiteTiger, 07 mai 2014 - 02:42 .
#12
Posté 07 mai 2014 - 01:20
Oh! You talked about pickpocket message. Yes, Funky is right, that possible to replace.
However, the script from nwnx_events will run when a player uses the pickpocket skill from radial on target - that is before his character gets close to the target and attempts pickpocket thus before you know result of the pickpocket. Not very fortunate, but can be workarounded......
- WhiteTiger aime ceci
#13
Posté 09 mai 2014 - 11:54
If you're running on linux you can suppress (and replace -- well with your own SendMessageToPC) those messages with the nwnx_chat CCMessage hook as well: https://github.com/N...n/cc_script.nss. You'd need to experiment a bit to find the message type/subtype. It looks like it could be Type: 11, Subtype: 4 but I haven't tried it myself. No clue if it that part was ever ported to windows.
#14
Posté 09 mai 2014 - 12:15
I instslled nwnx_events plugin, but I have not yet tested all at all.





Retour en haut






