Author Topic: What's the script: Target has no items or gold?  (Read 424 times)

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
What's the script: Target has no items or gold?
« on: May 02, 2014, 02:03:25 am »


               

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



               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #1 on: May 02, 2014, 03:13:20 am »


               There is not one. It is hard coded in the engine.
               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #2 on: May 02, 2014, 05:14:17 am »


               

Can't we customize the message?



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #3 on: May 02, 2014, 07:51:47 am »


               


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.


               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #4 on: May 02, 2014, 10:39:28 am »


               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.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #5 on: May 02, 2014, 01:13:59 pm »


               

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.



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #6 on: May 02, 2014, 05:03:45 pm »


               

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.


               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #7 on: May 02, 2014, 07:59:16 pm »


               

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



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #8 on: May 03, 2014, 12:37:29 am »


               

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)



               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #9 on: May 03, 2014, 01:02:25 am »


               

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



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #10 on: May 03, 2014, 01:49:34 am »


               

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


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #11 on: May 07, 2014, 02:20:55 pm »


               

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



               
               

               
            

Legacy_leo_x

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #12 on: May 09, 2014, 12:54:50 pm »


               

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.



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
What's the script: Target has no items or gold?
« Reply #13 on: May 09, 2014, 01:15:26 pm »


               

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