Skrypty & Kody Pom?g?by mi kto??

Sepox

Active User
Zarejestrowany
Dołączył
Marzec 16, 2017
Posty
138
Liczba reakcji
0
Mam taki o to ma?y problem gdy? po wejsciu na kratk? powinien wyskoczy? Dialog z [Wyspami gdzie mozna p?yn??] Ale zamiast okienka to wyskakuje blad w silniku.
1c4304a15c937.jpg
 
Odp: Pom?g?by mi kto??

Sk?d mamy wiedzie? co jest w linijce 15?
 
Odp: Pom?g?by mi kto??

@UP
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
 
Odp: Pom?g?by mi kto??

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??
 
Odp: Pom?g?by mi kto??

Soruce masz z?ego dlatego ci nie dzia?a
 
Odp: Pom?g?by mi kto??

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
 
Odp: Pom?g?by mi kto??

@Up czyli? zielony jestem odpisz gadu/.
 
Odp: Pom?g?by mi kto??

Jak zwykle zle zgadujesz... sendChannels w src brak

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
Kod:
bool canLogout(bool checkInfight);
wklej
Kod:
void sendChannels(map16_string channels)
			{if(client) client->sendChannels(channels); lastChannels = channels;}
luascript.cpp
pod
Kod:
lua_register(m_luaState, "getModList", LuaScriptInterface::luaGetModList);
wklej
Kod:
//sendChannels(cid, {channels})
	lua_register(m_luaState, "sendChannels", LuaScriptInterface::luaSendChannels);
nad
Kod:
int32_t LuaScriptInterface::luaDoPlayerAddItemEx(lua_State* L)
wklej
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
 
Odp: Pom?g?by mi kto??

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
Kod:
bool canLogout(bool checkInfight);
wklej
Kod:
void sendChannels(map16_string channels)
			{if(client) client->sendChannels(channels); lastChannels = channels;}
luascript.cpp
pod
Kod:
lua_register(m_luaState, "getModList", LuaScriptInterface::luaGetModList);
wklej
Kod:
//sendChannels(cid, {channels})
	lua_register(m_luaState, "sendChannels", LuaScriptInterface::luaSendChannels);
nad
Kod:
int32_t LuaScriptInterface::luaDoPlayerAddItemEx(lua_State* L)
wklej
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

XD co ja Ci bede udowadniac dzieciaczku (idz dalej placz o mape na otlandzie xD)

Ofc mialem Sepoxowi podeslac nowa binarke ale nie dochodze ostatnio do pc'ta z powodu braku czasu ^^
 
Odp: Pom?g?by mi kto??

@Up to lepiej zacznij mie? czas bo musisz mi pom?c pami?taj $$$$$$$$$$$$$ DOLARY
 
Back
Do góry