Sign in to follow this  
Followers 0
AnnieRuru

Utility
Vendor Control (rewrite)

22 posts in this topic

me start to love rewrite Emistry's script .... hehehe
sure he don't mind

 

Download: 2.1
script & plugin
plugin is meant for players can vend on top of npc

 

look for the original topic here for description
https://rathena.org/board/topic/84828-utility-vendor-control/
... but download the script here .. hahaha

Spoiler

Vendor Control


A script that basically used to control messy vendors in your server.

Included one helper npc that enable Vendor to pick their spot easily.

Some minor settings and math calculations are required to setup this.

wTJFzSl.jpg

 

 

Archive
1.0
- fix his script display menu option too long
- no need to run the npc timer on every npc even nobody is standing on it ...
- other optimization that I couldn't think of
vendor_control_1.0.txt

2.0
script & plugin
due to this bug report, spark my interest to update this script
- change npc sprite ID into constant
- fixed player can't stand on the cell by changing unitwalk into warp
- use source modification so players can vend on the npc while min_npc_vendchat_distance activated

2.1
script & plugin
- fix the script and use constant properly
- revert back to *unitwalk

 

Share this post


Link to post
Share on other sites

I think I'm going to start a "New Script Festival" LOL

 

I have so many scripts in my hard-disk ...

so I just have to post them 1 at a time ... everyday ! -> keep my fan base happy :D

Share this post


Link to post
Share on other sites

I think I'm going to start a "New Script Festival" LOL

 

I have so many scripts in my hard-disk ...

so I just have to post them 1 at a time ... everyday ! -> keep my fan base happy :D

I am one of them

Share this post


Link to post
Share on other sites

after I saw this bug report

https://github.com/HerculesWS/Hercules/issues/834

suddenly an urge for me to update this script

 

version 2.0

- change npc sprite ID into constant

- fixed player can't stand on the cell by changing unitwalk into warp

- use source modification so players can vend on the npc while min_npc_vendchat_distance activated

Share this post


Link to post
Share on other sites

after I saw this bug report

https://github.com/HerculesWS/Hercules/issues/834

suddenly an urge for me to update this script

 

version 2.0

- change npc sprite ID into constant

- fixed player can't stand on the cell by changing unitwalk into warp

- use source modification so players can vend on the npc while min_npc_vendchat_distance activated

 

Do we need to use both the script and the plugin? or just the script will do? because in rathena they only have script

Share this post


Link to post
Share on other sites

the plugin will bypass the 'min_npc_vendchat_distance' check

so your server can still on the 'min_npc_vendchat_distance' to disallow players to vend too near other npc

but still able vend on the npc for these coordinates

Share this post


Link to post
Share on other sites

you should assume all my plugins broken, just like my signature says

2.1
script & plugin
- fix the script and use constant properly
- revert back to *unitwalk

Share this post


Link to post
Share on other sites

Thanks, Ms. @AnnieRuru! But I'm having this message in console.

[Debug]: Source (NPC): Vending Helper at mall (99,95)

Is that okay?

Edited by Begin

Share this post


Link to post
Share on other sites
18 hours ago, Begin said:

Thanks, Ms. @AnnieRuru! But I'm having this message in console.

[Debug]: Source (NPC): Vending Helper at mall (99,95)

Is that okay?

How do you get this error message ? :o

Share this post


Link to post
Share on other sites

up to plugin to 2.1a
- fix a bug that will cause map-server to spam error if the player has pets or homunculus walk over the tiles
----- should have use BL_CAST and not BL_UCAST... BL_UCAST should only use in iterations

[Debug]: mapindex_id2name: Requested name for non-existant map index [0] in cache. ..\src\plugins\zzz.c::53

 


 

12 minutes ago, Begin said:

I dont know Ms. Annie. I just change the coordinates and npc sprite.

post your edited script here or in discord

 

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0