battleground script commands crash using plugin

AnnieRuru

~~Cute~Cute~Scripter~~
Messages
1,677
Points
0
Location
your next door ~
Discord
AnnieRuru#1609
Github
AnnieRuru
Emulator
Client Version
2019-05-30aRagexeRE
this is the plugin I'm using

http://upaste.me/cf4610708642f7979

everything is ok until using the npc script

http://upaste.me/7de710709dbb6fa17

server crash

when using the patch, the above npc script works fine

http://upaste.me/637f10590efeb783e

but the plugin just doesn't work with npcs

just to be sure, I have also tested this plugin

http://herc.ws/board/topic/2706-itemmap/

tested with

Code:
getitem_map 501,1, strcharinfo(3), 1, getcharid(1); // okgetitem_map 501,1, strcharinfo(3), 2, getcharid(2); // okgetitem_map 501,1, strcharinfo(3), 3, 0; // crash
now I'm sure there is some problem with battleground commands ...
 
Last edited by a moderator:
https://github.com/HerculesWS/Hercules/blob/master/src/map/map.c#L5453

who the **** put that bg but needs to read as "battlegrounds"
default_dry.png


I have to read the source code to find out exactly where it came from

just fix it after add

Code:
bg = GET_SYMBOL("battlegrounds");
 
Back
Top