Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
function onStepIn(cid, item, pos)
if item.uid == 11318 then
local poz = {x = 2107,y = 2178,z = 9}
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,"No way out")
doTeleportThing(cid,poz)
elseif item.uid == 11321 then
if getPlayerStorageValue(cid, 52771) == 2 then
local pos = {x = 2106,y = 2137,z = 9}
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,"Welcome to Hell!")
doTeleportThing(cid,pos)
doSendMagicEffect(getCreaturePosition(cid), 296)
end
elseif item.uid == 11725 then
sendChannels(cid,
{
--"".. miasta[id].place .." (LVL: ".. miasta[id].")"
{id = 1026, name = "Musha Island (LVL: 1450)"},
{id = 1025, name = "PvP Balanced Arena"},
{id = 1024, name = "Yarvan [TOWN] (LVL: 1500"},
{id = 1001, name = "Yarvan (LVL: 1500 Price: 5k"},
{id = 1002, name = "Rococo (LVL: 200 Price: 500"},
{id = 1003, name = "Arena (LVL: 700 Price: 500"},
{id = 1004, name = "Monars (LVL: 300 Price: 100"},
{id = 1005, name = "Furtia (LVL: 70 Price: 100"},
{id = 1006, name = "Yardrat (LVL: 30 Price: 100"},
{id = 1007, name = "M2 (LVL: 50 Price: 100"},
{id = 1008, name = "Lude (LVL: 20 Price: 100"},
{id = 1009, name = "Inceptus (LVL: 150 Price: 100"},
{id = 1010, name = "Namek (LVL: 105 Price: 100"},
{id = 1011, name = "Gardia (LVL: 85 Price: 100"},
{id = 1012, name = "Multi World (LVL: 310 Price: 100"},
{id = 1013, name = "Pandia (LVL: 210 Price: 100"},
{id = 1014, name = "Candia (LVL: 110 Price: 100"},
{id = 1015, name = "Toskania (LVL: 650 Price: 100"},
{id = 1016, name = "Zuna (LVL: 380 Price: 100"},
{id = 1017, name = "Volcano (LVL: 435 Price: 100"},
{id = 1018, name = "Shamosei (LVL: 450 Price: 100"},
{id = 1019, name = "Arlia (LVL: 200 Price: 100"},
{id = 1020, name = "Inferna (LVL: 240 Price: 100"},
{id = 1021, name = "Khazel (LVL: 210 Price: 100"},
{id = 1022, name = "Velter (LVL: 210 Price: 100"},
{id = 1023, name = "Tapion Isle (LVL: 735 Price: 100"},
{id = 1027, name = "Ice Island (LVL: 1200 Price: 10k"},
{id = 1028, name = "Asten (LVL: 1300 Price: 10k"},
{id = 1029, name = "Azrou {LVL: 1300 Price: 10k"}
}
)
end
end
to ladny dbnsik xD
jak zwykle post kadreza tre?ciwy i na temat jak nie masz zamiaru pom?c to zatkaj t? pizd? i chocia? nie komentuj
a skrypt chujowy i zgaduje ?e pewnie jest jaka? libka kt?ra podaje te miasta, jeste? pewny ?e masz j??
Jak zwykle zle zgadujesz... sendChannels w src brak
bool canLogout(bool checkInfight);
void sendChannels(map16_string channels)
{if(client) client->sendChannels(channels); lastChannels = channels;}
lua_register(m_luaState, "getModList", LuaScriptInterface::luaGetModList);
//sendChannels(cid, {channels})
lua_register(m_luaState, "sendChannels", LuaScriptInterface::luaSendChannels);
int32_t LuaScriptInterface::luaDoPlayerAddItemEx(lua_State* L)
int32_t LuaScriptInterface::luaSendChannels(lua_State* L)
{
//luaSendChannels(cid, {channels})
ScriptEnviroment* env = getEnv();
if(!lua_istable(L, -1))
{
errorEx("channel list is not a table.");
lua_pushboolean(L, false);
return 1;
}
std::string name;
map16_string channels;
lua_pushnil(L);
while(lua_next(L, -2))
{
channels[(uint16_t)getField(L, "id")] = getFieldString(L, "name");
lua_pop(L, 1);
}
lua_pop(L, 1);
Player* player = env->getPlayerByUID((uint32_t)popNumber(L));
if(!player)
{
errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND));
lua_pushboolean(L, false);
}
player->sendChannels(channels);
lua_pushboolean(L, true);
return 1;
}
rzeczywi?cie, nawet na to nie zerkn??em i tak o sobie napisa?em. ty za to powt?rzy?e? komentarz nad tob?, gratuluje ci. OTEXPERCIE w niczym.
@UP
Zgaduje ?e nie masz serwera skompilowanego tylko data skopiowa?e? z fabiana datapacka udost?pnionego i wstawi?e? z internetu jakie?.
Musisz posiada? source a w nim funkcj? kt?r? pr?bujesz u?y?.
je?eli masz source
to wklej do
player.h
pod
wklejKod:bool canLogout(bool checkInfight);
luascript.cppKod:void sendChannels(map16_string channels) {if(client) client->sendChannels(channels); lastChannels = channels;}
pod
wklejKod:lua_register(m_luaState, "getModList", LuaScriptInterface::luaGetModList);
nadKod://sendChannels(cid, {channels}) lua_register(m_luaState, "sendChannels", LuaScriptInterface::luaSendChannels);
wklejKod:int32_t LuaScriptInterface::luaDoPlayerAddItemEx(lua_State* L)
Kod:int32_t LuaScriptInterface::luaSendChannels(lua_State* L) { //luaSendChannels(cid, {channels}) ScriptEnviroment* env = getEnv(); if(!lua_istable(L, -1)) { errorEx("channel list is not a table."); lua_pushboolean(L, false); return 1; } std::string name; map16_string channels; lua_pushnil(L); while(lua_next(L, -2)) { channels[(uint16_t)getField(L, "id")] = getFieldString(L, "name"); lua_pop(L, 1); } lua_pop(L, 1); Player* player = env->getPlayerByUID((uint32_t)popNumber(L)); if(!player) { errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND)); lua_pushboolean(L, false); } player->sendChannels(channels); lua_pushboolean(L, true); return 1; }
i kompiluj powinno ?miga? ok