Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //game.cpp
- /* una línea antes de esto https://github.com/mattyx14/otxserver/blob/otxserv2/path_7_x/sources/game.cpp#L1922 y de esto https://github.com/mattyx14/otxserver/blob/otxserv2/path_7_x/sources/game.cpp#L1965
- vas a pegar esto: */
- boost::any value = item->getAttribute("enchanted");
- if(!value.empty())
- continue;
- //game.h
- //https://github.com/mattyx14/otxserver/blob/otxserv2/path_7_x/sources/game.h#L21 pegas esto:
- #include <boost/regex.hpp>
- //para el mod harás ctrl + f y buscarás esta línea:
- doItemSetAttribute(tmpItem, n.attr:lower(), new)
- //debajo de ella pegas esto:
- doItemSetAttribute(tmpItem, "enchanted", 1)
- //y luego a testear :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement