Postado Julho 24, 2012 12 anos Autor RESOLVIDO! Editado Julho 25, 2012 12 anos por heelfidelis (veja o histórico de edições)
Postado Julho 24, 2012 12 anos function onLogin(cid) if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then if isSorcerer(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2190, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isDruid(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2182, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isPaladin(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2389, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isKnight(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doAddContainerItem(bag, 2428, 1) doAddContainerItem(bag, 2394, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2383, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isNone(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doAddContainerItem(bag, 2428, 1) doAddContainerItem(bag, 2394, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2383, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) end end return TRUE end Desculpe-me, eu hávia feito errado ;x foi erro meu! -- Leia esse tutorial como juntar um mapa ao outro... http://tibiaking.com...-mapa-ao-outro/ Como seu pc não deverá aguentar 2 Global... Faça o seguinte: 1º Abra o map global 2º Clique em FILE>NEW ... Ou CTRL + N 3º Copie a Gm island do map global, CTRL + Botão direito do mouse para marca o local (nesse caso, a ilha), logo em seguida CTRL + C, vá ao new map (que nesse caso deve se chamar de Untitled-1.OTBM) e clique CTRL +V 4º Agora você fecha o map global que possui a Gm island e abre o map global que não possui... 5º Escolha o local aonde você quer deixar a Gm island, volte para o Untitled-1.OTBM (que no caso é o new map - aonde você deixou o Gm island) copie-a e coloque-a no map global. 6º Salve o global map, feche o Untitled-1.OTBM... -- Como eu falei: $config['site']['newchar_towns'][0] = array(4); $config['site']['newchar_towns'][1] = array(4); // sample, if all players should spawn in one city (city with ID 4): uncoment!! //$config['site']['newchar_towns'] = array(4); // list of towns on ots $towns_list[0] = array(1 => 'Venore', 2 => 'Thais', 4 => 'Carlin', 5 => 'Ab'Dendriel'); // list of towns, id => 'name', $towns_list[0] - for world id 0 $towns_list[1] = array(1 => 'Venore', 2 => 'Thais', 4 => 'Carlin', 5 => 'Ab'Dendriel'); // list of towns, id => 'name', $towns_list[1] - for world id 1 Não pegou? PS: eu já arrumei o Codigo acima, basta copiar e colar lá no seu CONFIG.PHP Era um erro que estava passando despercebido, nem tinha visto ele, mais agora já está arrumado ;x -- Me passa a parte dos characters em config.php... E me passa as vocation.xml do seu servidor...
Postado Julho 24, 2012 12 anos Autor RESOLVIDO! Editado Julho 25, 2012 12 anos por heelfidelis (veja o histórico de edições)
Postado Julho 25, 2012 12 anos Autor RESOLVIDO! Editado Julho 25, 2012 12 anos por heelfidelis (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.