Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. //game.cpp
  2. /* 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
  3. vas a pegar esto: */
  4. boost::any value = item->getAttribute("enchanted");
  5. if(!value.empty())
  6. continue;
  7.  
  8. //game.h
  9. //https://github.com/mattyx14/otxserver/blob/otxserv2/path_7_x/sources/game.h#L21 pegas esto:
  10. #include <boost/regex.hpp>
  11.  
  12.  
  13. //para el mod harás ctrl + f y buscarás esta línea:
  14. doItemSetAttribute(tmpItem, n.attr:lower(), new)
  15.  
  16. //debajo de ella pegas esto:
  17. doItemSetAttribute(tmpItem, "enchanted", 1)
  18. //y luego a testear :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement