Aller au contenu

Photo

What's the script: Target has no items or gold?


  • Veuillez vous connecter pour répondre
13 réponses à ce sujet

#1
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

I would like to know what's the script that send the message when the mob hasn't items or gold. thanks your attemption



#2
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
There is not one. It is hard coded in the engine.
  • WhiteTiger aime ceci

#3
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

Can't we customize the message?



#4
Shadooow

Shadooow
  • Members
  • 4 471 messages

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
Proleric

Proleric
  • Members
  • 2 359 messages
Shadooow's right. 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, but you'd have to ask players to back up the standard version for the duration before downloading yours, which is generally considered to be too complicated.
  • WhiteTiger aime ceci

#6
Shadooow

Shadooow
  • Members
  • 4 471 messages

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
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

ProlericIt'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. 

 

 

ShadooowHonestly 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
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages

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.

 

http://pastebin.com/sSGWEmDG

 

Funky


  • WhiteTiger aime ceci

#9
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

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
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages

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
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

//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
Shadooow

Shadooow
  • Members
  • 4 471 messages

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
leo_x

leo_x
  • Members
  • 223 messages

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
WhiteTiger

WhiteTiger
  • Members
  • 479 messages

I instslled nwnx_events plugin, but I have not yet tested all at all.