This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int32 LuaInterface::luaIsInArray(lua_State* L) { | |
//isInArray(array, value[, caseSensitive = false]) | |
bool caseSensitive = false; | |
if(lua_gettop(L) > 2) | |
caseSensitive = popBoolean(L); | |
boost::any value; | |
if(lua_isnumber(L, -1)) | |
value = popFloatNumber(L); | |
else if(lua_isboolean(L, -1)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KERNELBASE.dll!RaiseException() Unknown | |
lua51.dll!000007fef3cc939e() Unknown | |
lua51.dll!000007fef3cc911c() Unknown | |
lua51.dll!000007fef3cce068() Unknown | |
lua51.dll!000007fef3cea74f() Unknown | |
lua51.dll!000007fef3cea60c() Unknown | |
lua51.dll!000007fef3ce9fa3() Unknown | |
lua51.dll!000007fef3cd2d24() Unknown | |
lua51.dll!000007fef3ca88f1() Unknown | |
tfs-x64.exe!LuaInterface::pushTable(lua_State * L) Line 1185 C++ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Npc::onThink(uint32 interval) { | |
/*Creature::onThink(interval); | |
if (m_npcEventHandler) { | |
m_npcEventHandler->onThink(); | |
}*/ | |
std::vector<Player*> list; | |
Player* player = nullptr; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void NpcEvents::onThink() { | |
if(m_onThink == -1) | |
return; | |
//onThink() | |
if(m_interface->reserveEnv()) { | |
ScriptEnviroment* env = m_interface->getEnv(); | |
#ifdef __DEBUG_LUASCRIPTS__ | |
std::stringstream desc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Handles onThink events. If you wish to handle this yourself, please use the CALLBACK_ONTHINK callback. | |
function NpcHandler:onThink() | |
local callback = self:getCallback(CALLBACK_ONTHINK) | |
if callback == nil or callback() then | |
for i, speech in pairs(self.talkDelay) do | |
if (speech.cid == nil or speech.cid == 0) and speech.time ~= nil and speech.message ~= nil then | |
if os.mtime() >= speech.time then | |
selfSay(speech.message) | |
self.talkDelay[i] = nil | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<interaction> | |
<interact keywords="bank"> | |
<response text="The depots are very easy to use. Just step in front of them and you will find your items in them. They are free for all tibian citizens."/> | |
</interact> | |
<interact keywords="offer"> | |
<!--These are alternative keywords--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(int argc, char* argv[]) | |
{ | |
VLDEnable(); // enable VDL | |
// Setup bad allocation handler | |
std::set_new_handler(badAllocationHandler); | |
#ifndef _WIN32 | |
// ignore sigpipe... | |
struct sigaction sigh; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Dispatcher::dispatcherThread() | |
{ | |
VLDEnable(); | |
OutputMessagePool* outputPool = OutputMessagePool::getInstance(); | |
// NOTE: second argument defer_lock is to prevent from immediate locking | |
std::unique_lock<std::mutex> taskLockUnique(m_taskLock, std::defer_lock); | |
while (m_threadState != STATE_TERMINATED) { | |
// check if there are tasks waiting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Object Oriented Life Motto | |
Person person = world.getPerson("Adam Dempsey"); | |
if(person != null) { | |
while(person.isAlive()) { | |
if(person.isSad()) { | |
person.setSad(false); | |
person.executeAwesomeness(); | |
} | |
else { | |
person.fistBumpClosestPerson(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-ajax/core-ajax.html"> | |
<link rel="import" href="../topeka-elements/topeka-datasource.html"> | |
<link rel="import" href="../paper-toast/paper-toast.html"> | |
<link rel="import" href="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<link rel="import" href="../paper-toggle-button/paper-toggle-button.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<link rel="import" href="../paper-ripple/paper-ripple.html"> | |
<link rel="import" href="../notification-elements/notification-alert.html"> | |
<link rel="import" href="../speech-mic/speech-mic.html"> |
OlderNewer