AnnieRuru
~~Cute~Cute~Scripter~~
- Messages
- 1,677
- Points
- 0
- Location
- your next door ~
- Discord
- AnnieRuru#1609
- Github
- AnnieRuru
- Emulator
- Client Version
- 2019-05-30aRagexeRE
ok I'm converting this script into patch and plugin
http://herc.ws/board/topic/4421-bst-stand-for-buy-sell-and-trade/?p=29021
patch
http://upaste.me/349b75
into plugin
http://upaste.me/823b70
noticed that in the patch file, I declare a new source variable 'bst_delay' inside map_session_data
so it should be fast to just retrieve the value 'sd->bst_delay' in the source, without using Sql or script type variable
but in the plugin, I currently have no known way to declare a new struct that points to map_session_data
because I'm using pc_setreg which is a script type variable, bad method ...
just like Brainstorm once told me, using a cannon to pick a lock
is there any way to make a plugin declare a new variable from another struct ? like pc.h or itemdb.h
http://herc.ws/board/topic/4421-bst-stand-for-buy-sell-and-trade/?p=29021
patch
http://upaste.me/349b75
into plugin
http://upaste.me/823b70
noticed that in the patch file, I declare a new source variable 'bst_delay' inside map_session_data
so it should be fast to just retrieve the value 'sd->bst_delay' in the source, without using Sql or script type variable
but in the plugin, I currently have no known way to declare a new struct that points to map_session_data
because I'm using pc_setreg which is a script type variable, bad method ...
just like Brainstorm once told me, using a cannon to pick a lock
is there any way to make a plugin declare a new variable from another struct ? like pc.h or itemdb.h
Last edited by a moderator: