Vendor Control (rewrite)

AnnieRuru

~~Cute~Cute~Scripter~~
Messages
1,677
Points
0
Location
your next door ~
Discord
AnnieRuru#1609
Github
AnnieRuru
Emulator
Client Version
2019-05-30aRagexeRE
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

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.

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

 

Attachments

Last edited by a moderator:
When script came from you. I love it.
default_smile.png
I'll update mine. Thanks!

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


 
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

 
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

 
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

 
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

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

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

Is that okay?

 
Last edited by a moderator:
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

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





I dont know Ms. Annie. I just change the coordinates and npc sprite.
post your edited script here or in discord

 
Last edited by a moderator:
Back
Top