Changeset 1205

Show
Ignore:
Timestamp:
03/04/2010 03:29:07 PM (6 months ago)
Author:
Paroxysm
Message:

FIXED : RegisterDummySpell? should work. Also fixed issues with Item and Go gossip from http://arcemu.org/forums/index.php?showtopic=21113&pid=96412&st=0&#entry96412
Unit:WipeThreatList() - now works well.

Location:
Trunk/src/LuaEngine
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • Trunk/src/LuaEngine/GlobalFunctions.h

    r1204 r1205  
    607607        int GetPlatform(lua_State * L) 
    608608        { 
    609 #ifdef WIN32 
    610                 lua_pushliteral(L,"windows"); 
    611 #else 
    612                 lua_pushliteral(L,"linux"); 
    613 #endif 
     609                lua_pushliteral(L,PLATFORM_TEXT); 
    614610                return 1; 
    615611        } 
  • Trunk/src/LuaEngine/LUAEngine.cpp

    r1204 r1205  
    554554        uint16 functionRef = 0; 
    555555        uint32 entry = luaL_checkint(L, 1); 
    556         const char * typeName = luaL_checkstring(L, 2); 
     556        const char * typeName = luaL_typename(L, 2); 
    557557        lua_settop(L,2); 
    558558 
     
    941941        } 
    942942        if(functionRef) 
    943                 sLuaMgr.RegisterEvent(REGTYPE_UNIT_GOSSIP,entry,ev,functionRef); 
     943                sLuaMgr.RegisterEvent(REGTYPE_ITEM_GOSSIP,entry,ev,functionRef); 
    944944        return 0; 
    945945 } 
     
    10021002        } 
    10031003        if(functionRef) 
    1004                 sLuaMgr.RegisterEvent(REGTYPE_UNIT_GOSSIP,entry,ev,functionRef); 
     1004                sLuaMgr.RegisterEvent(REGTYPE_GO_GOSSIP,entry,ev,functionRef); 
    10051005        return 0; 
    10061006} 
  • Trunk/src/LuaEngine/UnitFunctions.h

    r1204 r1205  
    18801880                TEST_UNIT() 
    18811881                ptr->WipeHateList(); 
     1882                ptr->GetAIInterface()->WipeHateList(); 
    18821883                return 0; 
    18831884        }