Jump to content
AnnieRuru

custom statue NPC

Recommended Posts

ok so I have been annoyed by some people claiming that statue doesn't work

so I tackle this topic instead -> https://rathena.org/board/topic/125602-statue-npc-not-pvp-rankings/

 

let GM do whatever they want with this npc,

let it disguise as a player to reward them as a champion in an event, or just to shame a player for doing wrong things

whatever

 

Download: 1.4

script

 

Remember the color code

screen2020Hercules003.jpg

remember Navigation link and Item Link

screen2020Hercules005.jpg

 

Spoiler

0.1 - script

- proof of concept

 

0.2 - script

- expanding ideas

 

1.0 - script

- initial release

 

1.1 - script

- make the statue data survive a server restart

 

1.2 - script

- fix a bug that server throw rid2name not found error

- add more name limitation such as npc name can't have # symbol

- allow to add more than one statue

- allow to search for offline player

 

1.3 - script

- fix if the server has custom animation sprite, reset the view sprite back to 0

- allow to disguise as another NPC

- add log to know which GM setup this statue/NPC

- add friendly reminder tricks for how to setup the text message

 

1.4 - script

- fix a bug when there is no text line and insert an empty space, causes Complete Setup doesn't work

 

Spoiler

use Notepad++ regular expression replace

find


- `(\w+)`: (\d+)

replace with
 


.npcsprite$[\1] = "\1";

 

 

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

Hi Maam Annie! I'm trying this wonderful script right now and I'm receiving this error:

 

image.png.87059d9689b5057ae719ca73e69f3d7c.png

 

Is this normal? The poring changes to a players sprite but whenever I talk to the NPC, it gives me that error notif.

Share this post


Link to post
Share on other sites

this will be really really useful, specially to make players feel more rewarded by an event! thanks annie

 

hope it can support offline players soon 😁

 

btw wouldn't it make more sense to have this as a function instead of an npc? (just a thought 😜)

Share this post


Link to post
Share on other sites
17 hours ago, xJhay said:

Hi Maam Annie! I'm trying this wonderful script right now and I'm receiving this error:

 

image.png.87059d9689b5057ae719ca73e69f3d7c.png

 

Is this normal? The poring changes to a players sprite but whenever I talk to the NPC, it gives me that error notif.

HAHAHA !! my reputation is spoiled now !!

damn, I didn't make this mistake in a very long time

 

11 hours ago, evilpuncker said:

hope it can support offline players soon 😁😜

just rip from `char` table ?

fine ...

 

11 hours ago, evilpuncker said:

btw wouldn't it make more sense to have this as a function instead of an npc? (just a thought 😜) 

I used OnInit to persist the data so it survive server restart (or `@reloadscript`)

using function means ... needs to have at least 3, better do this as duplicate npc

 

 

1.2 - script

- fix a bug that server throw rid2name not found error

- add more name limitation such as npc name can't have # symbol

- allow to add more than one statue

- allow to search for offline player

Share this post


Link to post
Share on other sites

1.3 - script

- fix if the server has custom animation sprite, reset the view sprite back to 0

- allow to disguise as another NPC

- add log to know which GM setup this statue/NPC

- add friendly reminder tricks for how to setup the text message

 

screen2020Hercules005.jpg

Share this post


Link to post
Share on other sites

1.4a - script

- fix a bug when there is no text line and insert an empty space, causes Complete Setup doesn't work

- fix a missing sprite change from LOOK_ROBE

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.