- 0
how to declare a new PLAYER source variable in a plugin file
Asked by
AnnieRuru
-
Recently Browsing 0 members
No registered users viewing this page.
Asked by
AnnieRuru
No registered users viewing this page.
By using this site, you agree to our Terms of Use.
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
Share this post
Link to post
Share on other sites