Gdy ktoś chce wejśc na AccMaker wyskakuje takie coś
Proszę o pomoc.Cytuj:
Forbidden
You don't have permission to access / on this server.
Pozdrawiam
Wersja do druku
Gdy ktoś chce wejśc na AccMaker wyskakuje takie coś
Proszę o pomoc.Cytuj:
Forbidden
You don't have permission to access / on this server.
Pozdrawiam
Witam Mam kolejny problem... Wygląda to tak iż kiedy chcem dodać skille w bazie danych.. to jak najeżdżam na zakładke przeglądaj to wyskakuje mi x w kółeczku... I mam pytanie czy Autor otsa mógł skasować opcje dodawania skilli? A drugi problem jest z gamemasterem na serverze... dodaje go wszystko jest ladnie ale pisze ze nie mam uprawienien do komend..
Aha I gdzie moge powiekszyć szybkosc atakowania? (Chodzi mi o "melee" zeby nie mylić z "exusajtem")
God Gamemaster umnie tak samo dzialaja... ani ten ani ten nie moga używać jakich kolwiek komend... Nie dało by sie tego jakos zmienić no bo to jest jednak ots a komenda do banowania często sie przydaje.
czemu jak konfiguruje acc to sie pokazuje
Cytuj:
Fatal error: Call to undefined function: file_put_contents() in D:\DeadTouch3.0rc2\aac\install.php on line 45
to czego mam uzywac?
#UP:
Zainstaluj nowsza wersje PHP.
nie wiem jak to zrobic... mozesz polecic jakis program zeby normlanie dzialalo?
Uzyj prosze WampServa
tak zrobilem i po instalacji z pliku install.php w indexie pokazuje mi sie:
Cytuj:
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in C:\wamp\www\lib\pot\OTS_DB_SQLite.php:54 Stack trace: #0 C:\wamp\www\lib\pot\OTS_DB_SQLite.php(54): PDO->__construct('sqlite:C:/Docum...') #1 C:\wamp\www\lib\pot\OTS.php(489): OTS_DB_SQLite->__construct(Array) #2 C:\wamp\www\sys\dbLayer.php(22): POT->connect(2, Array) #3 C:\wamp\www\header.php(31): dbLayer::connect(Array, 'sqlite') #4 C:\wamp\www\index.php(3): require_once('C:\wamp\www\hea...') #5 {main} thrown in C:\wamp\www\lib\pot\OTS_DB_SQLite.php on line 54
ok wszystko gra :) a moglby ktos swoich npcow mi dac? bo probowalem z innego serva kopiowac ale cos mi nie wychodzi. jak ich postawie na mapie to i tak po wlaczeniu serva sie nie pokazuja ;/
P.S. jak podejde gm'em do kogos na invisible to mu debug wyskakuje
ehh no nie wiem co zrobic...z kadego chyba juz ots 8.31 kopiowalem npcow i zawsze w konsoli jakies bledy wywala i nie ma ich na mapie..
i jak jest ten testowy (test82) to nic mi nie sprzedaje wezme z nim trade i jak klikam ok w okienku trade to nie zabiera mi kasy ani on nie daje itemu.
Killavus albo ktos kto tez sie zna na tym silniku, moglibyscie mi dac pliki .lua do npc sprzedajacych premium i addony (obojetnie czy za itemy czy za kase)?
gelman8, my answer is: Napisz se sam ;(
cwaniak jestes bo umiesz... probowalem juz na rozne sposoby tego od pacca zrobic ale nie wychodzi ;/ wszystkie mam oprocz npca do pacca
albo inaczej, powiedz mi jak zrobic zeby towrzone konta mialy juz pacc bo nawet nie umiem dodac do istniejacych, przejrzalem cala baze sql i wszystko co bylo zwiazane z paccem pozmienialem i nic nie dalo ;/
jescze mi powiedzcie jak na tym ots sie domek kupuje bo nie dzialaja komendy !buyhouse ani /buyhouse jest tylko /sellhouse :)
@Killavus:
Misiek, a czy Ty przypadkiem nie brałeś NPC systemu z TFSa wreszcie?
Killavus moglbys mi powiedziec jak zrobic zeby konta na start mialy pacc i jak to jest z kupowaniem domkow na tym silniku, bo !buyhouse nie dziala ?
Otoz mam taki problem :
Wszystkie postacie zrobione przez stronke maja do wyboru tylko outfity female. Co zrobic zeby to naprawic??
Z gory dzieki za odpowiedz!
Z pozdorwieniami
Xidos
w bazie danych wchodzisz w "players" i dla kazdego "knight schema", "druid schema" itp dajesz sex=1
BTW. ktos moze na moje pytanie up odpowie? :)
podziele sie owocem swojej pracy dzialajacym na tym ots:
NPC sprzedajacy addony za itemy:
Kod:local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
npcHandler:setMessage(MESSAGE_GREET, "Greetings |PLAYERNAME|. Will you help me? If you do, I'll reward you with nice addons! Just say {addons} or {help} if you don't know what to do.")
function playerBuyAddonNPC(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if (parameters.confirm ~= true) and (parameters.decline ~= true) then
if(getPlayerPremiumDays(cid) == 0) and (parameters.premium == true) then
npcHandler:say('Sorry, but this addon is only for premium players!', cid)
npcHandler:resetNpc()
return true
end
if (getPlayerStorageValue(cid, parameters.storageID) ~= -1) then
npcHandler:say('You already have this addon!', cid)
npcHandler:resetNpc()
return true
end
local itemsTable = parameters.items
local items_list = ''
if table.maxn(itemsTable) > 0 then
for i = 1, table.maxn(itemsTable) do
local item = itemsTable[i]
items_list = items_list .. item[2] .. ' ' .. getItemName(item[1])
if i ~= table.maxn(itemsTable) then
items_list = items_list .. ', '
end
end
end
local text = ''
if (parameters.cost > 0) and #parameters.items > 0 then
text = items_list .. ' and ' .. parameters.cost .. ' gp'
elseif (parameters.cost > 0) then
text = parameters.cost .. ' gp'
elseif #parameters.items > 0 then
text = items_list
end
npcHandler:say('Did you bring me ' .. text .. ' for ' .. keywords[1] .. '?', cid)
return true
elseif (parameters.confirm == true) then
local addonNode = node:getParent()
local addoninfo = addonNode:getParameters()
local items_number = 0
if #addoninfo.items > 0 then
for i = 1, #addoninfo.items do
local item = addoninfo.items[i]
if (getPlayerItemCount(cid,item[1]) >= item[2]) then
items_number = items_number + 1
end
end
end
if(getPlayerMoney(cid) >= addoninfo.cost) and (items_number == #addoninfo.items) then
doPlayerRemoveMoney(cid, addoninfo.cost)
if table.maxn(addoninfo.items) > 0 then
for i = 1, table.maxn(addoninfo.items) do
local item = addoninfo.items[i]
doPlayerRemoveItem(cid,item[1],item[2])
end
end
doPlayerAddOutfit(cid, addoninfo.outfit_male, addoninfo.addon)
doPlayerAddOutfit(cid, addoninfo.outfit_female, addoninfo.addon)
setPlayerStorageValue(cid,addoninfo.storageID,1)
npcHandler:say('Here you are.', cid)
else
npcHandler:say('You do not have needed items or cash!', cid)
end
npcHandler:resetNpc()
return true
elseif (parameters.decline == true) then
npcHandler:say('Not interested? Maybe other addon?', cid)
npcHandler:resetNpc()
return true
end
return false
end
local noNode = KeywordNode:new({'no'}, playerBuyAddonNPC, {decline = true})
local yesNode = KeywordNode:new({'yes'}, playerBuyAddonNPC, {confirm = true})
local outfit_node = keywordHandler:addKeyword({'first citizen addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5878,100}}, outfit_female = 136, outfit_male = 128, addon = 1, storageID = 10001})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second citizen addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5890,100}, {5902,50}, {2480,1}}, outfit_female = 136, outfit_male = 128, addon = 2, storageID = 10002})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first hunter addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5875,1}}, outfit_female = 137, outfit_male = 129, addon = 1, storageID = 10003})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second hunter addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5876,100}, {5947,1}, {2195,5}, {2487,1}, {2516,1}, {2462,1}, {5948,100}}, outfit_female = 137, outfit_male = 129, addon = 2, storageID = 10004})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first mage addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{2182,1}, {2186,1}, {2185,1}, {8911,1}, {2181,1}, {2183,1}, {2190,1}, {2191,1}, {2188,1}, {8921,1}, {2189,1}, {2187,1}, {2392,30}, {5809,1}, {2193,20}}, outfit_female = 138, outfit_male = 130, addon = 1, storageID = 10005})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second mage addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5903,1}}, outfit_female = 138, outfit_male = 130, addon = 2, storageID = 10006})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first knight addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5893,100}, {5924,1}, {2475,4}, {2487,1}}, outfit_female = 139, outfit_male = 131, addon = 1, storageID = 10007})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second knight addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5880,100}, {2393,1}}, outfit_female = 139, outfit_male = 131, addon = 2, storageID = 10008})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first summoner addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5878,100}}, outfit_female = 141, outfit_male = 133, addon = 1, storageID = 10009})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second summoner addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5894,70}, {5911,20}, {5883,40}, {5922,35}, {5879,10}, {5881,60}, {5882,40}, {2392,3}, {5905,30}}, outfit_female = 141, outfit_male = 133, addon = 2, storageID = 10010})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first warrior addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5925,100}, {5899,100}, {5919,1}, {2498,2}}, outfit_female = 142, outfit_male = 134, addon = 1, storageID = 10001})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second warrior addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5880,100}, {2487,1}}, outfit_female = 142, outfit_male = 134, addon = 2, storageID = 10011})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first barbarian addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{2498,2}, {5911,50}, {5910,50}, {5879,100}, {2475,4}}, outfit_female = 147, outfit_male = 143, addon = 2, storageID = 10012})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second barbarian addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5878,100}}, outfit_female = 147, outfit_male = 143, addon = 2, storageID = 10013})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first druid addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5896,50}, {5897,50}}, outfit_female = 148, outfit_male = 144, addon = 1, storageID = 10014})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second druid addon'}, playerBuyAddonNPC, {premium = true, cost = 500000, items = {{5906,100}, {5940,1}}, outfit_female = 148, outfit_male = 144, addon = 2, storageID = 10015})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first wizard addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{2536,1}, {2492,1}, {2488,1}, {2123,1}}, outfit_female = 149, outfit_male = 145, addon = 1, storageID = 10016})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second wizard addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5922,50}}, outfit_female = 149, outfit_male = 145, addon = 2, storageID = 10017})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first oriental addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5945,1}}, outfit_female = 150, outfit_male = 146, addon = 1, storageID = 10018})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second oriental addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5883,100}, {5895,100}, {5912,100}, {2195,2}}, outfit_female = 150, outfit_male = 146, addon = 2, storageID = 10019})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first pirate addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{6098,100}, {6126,100}, {6097,100}}, outfit_female = 155, outfit_male = 151, addon = 1, storageID = 10020})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second pirate addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{6101,1}, {6102,1}, {6100,1}, {6099,1}}, outfit_female = 155, outfit_male = 151, addon = 2, storageID = 10021})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first assassin addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5909,50}, {5910,50}, {5911,50}, {5912,50}, {5913,50}, {5914,50}, {5879,100}}, outfit_female = 156, outfit_male = 152, addon = 1, storageID = 10022})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second assassin addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{5804,1}, {5930,1}}, outfit_female = 156, outfit_male = 152, addon = 2, storageID = 10023})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first beggar addon'}, playerBuyAddonNPC, {premium = true, cost = 20000, items = {{5883,100}}, outfit_female = 157, outfit_male = 153, addon = 1, storageID = 10024})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second beggar addon'}, playerBuyAddonNPC, {premium = true, cost = 200000, items = {}, outfit_female = 157, outfit_male = 153, addon = 2, storageID = 10025})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first shaman addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{3955,5}, {5810,5}, {5015,1}}, outfit_female = 158, outfit_male = 154, addon = 1, storageID = 10026})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second shaman addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{3966,5}, {3967,5}}, outfit_female = 158, outfit_male = 154, addon = 2, storageID = 10027})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first nightmare addon'}, playerBuyAddonNPC, {premium = true, cost = 400000, items = {}, outfit_female = 269, outfit_male = 268, addon = 1, storageID = 10029})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second nightmare addon'}, playerBuyAddonNPC, {premium = true, cost = 400000, items = {}, outfit_female = 269, outfit_male = 268, addon = 2, storageID = 10030})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first jester addon'}, playerBuyAddonNPC, {premium = true, cost = 300000, items = {}, outfit_female = 270, outfit_male = 273, addon = 1, storageID = 10031})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second jester addon'}, playerBuyAddonNPC, {premium = true, cost = 300000, items = {}, outfit_female = 270, outfit_male = 273, addon = 2, storageID = 10032})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first brotherhood addon'}, playerBuyAddonNPC, {premium = true, cost = 400000, items = {}, outfit_female = 279, outfit_male = 278, addon = 1, storageID = 10033})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second brotherhood addon'}, playerBuyAddonNPC, {premium = true, cost = 400000, items = {}, outfit_female = 279, outfit_male = 278, addon = 2, storageID = 10034})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first demonhunter addon'}, playerBuyAddonNPC, {premium = true, cost = 666666, items = {}, outfit_female = 288, outfit_male = 289, addon = 1, storageID = 10035})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second demonhunter addon'}, playerBuyAddonNPC, {premium = true, cost = 666666, items = {}, outfit_female = 288, outfit_male = 289, addon = 2, storageID = 10036})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first nobleman addon'}, playerBuyAddonNPC, {premium = true, cost = 300000, items = {}, outfit_female = 140, outfit_male = 132, addon = 1, storageID = 10037})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second nobleman addon'}, playerBuyAddonNPC, {premium = true, cost = 300000, items = {}, outfit_female = 140, outfit_male = 132, addon = 2, storageID = 10038})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first norseman addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{7290,10}}, outfit_female = 252, outfit_male = 251, addon = 1, storageID = 10039})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second norseman addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{7290,15}}, outfit_female = 252, outfit_male = 251, addon = 2, storageID = 10040})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'first norsewoman addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{7290,10}}, outfit_female = 252, outfit_male = 251, addon = 1, storageID = 10041})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
local outfit_node = keywordHandler:addKeyword({'second norsewoman addon'}, playerBuyAddonNPC, {premium = true, cost = 0, items = {{7290,15}}, outfit_female = 252, outfit_male = 251, addon = 2, storageID = 10042})
outfit_node:addChildKeywordNode(yesNode)
outfit_node:addChildKeywordNode(noNode)
keywordHandler:addKeyword({'addons'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can give you Citizen, Hunter, Knight, Mage, Nobleman, Summoner, Warrior, Barbarian, Druid, Wizard, Oriental, Pirate, Assassin, Beggar, Shaman, Norseman/Norsewoman, Nighmare, Jester, Demonhunter and Brotherhood addons.'})
keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To buy the first addon say \'first NAME addon\', for the second addon say \'second NAME addon\'.'})
npcHandler:addModule(FocusModule:new())
NPC sprzedajacy pacc i premium:
Kod:local focus = 0
local talk_start = 0
local target = 0
local days = 0
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Good bye then.')
focus = 0
talk_start = 0
end
end
function onCreatureTurn(creature)
end
function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end
function onCreatureSay(cid, type, msg)
msg = string.lower(msg)
if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
selfSay('Hello ' .. getPlayerName(cid) .. '! I sell premiums and promotions.')
focus = cid
talk_start = os.clock()
elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ' .. getPlayerName(cid) .. '! I talk to you in a minute.')
elseif focus == cid then
talk_start = os.clock()
if msgcontains(msg, 'promotion') or msgcontains(msg, 'promote') then
if getPlayerVocation(cid) > 4 then
selfSay('Sorry, you are already promoted.')
talk_state = 0
elseif getPlayerLevel(cid) < 20 then
selfSay('Sorry, you need level 20 to buy promotion.')
talk_state = 0
elseif not isPremium(cid) then
selfSay('Sorry, you must be premium to buy promotion.')
talk_state = 0
else
selfSay('Do you want to buy promotion for 20k?')
talk_state = 1
end
elseif msgcontains(msg, 'premium') or msgcontains(msg, 'premmy') then
selfSay('Do you want to buy 7 days of premium for 2k?')
talk_state = 2
elseif talk_state == 1 then
if msgcontains(msg, 'yes') then
if doPlayerRemoveMoney(cid,20000) then
doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
selfSay('You are now promoted!')
else
selfSay('Sorry, you do not have enough money.')
end
end
talk_state = 0
elseif talk_state == 2 then
if msgcontains(msg, 'yes') then
if doPlayerRemoveMoney(cid,2000) then
doPlayerAddPremiumDays(cid, 7)
selfSay('You have 7 days of premium more!')
else
selfSay('Sorry, you do not have enough money.')
end
end
talk_state = 0
elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
focus = 0
talk_start = 0
end
end
end
function onCreatureChangeOutfit(creature)
end
function onThink()
doNpcSetCreatureFocus(focus)
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next Please...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Good bye then.')
focus = 0
end
end
end
BTW: skrypty nie sa moje ale chodzi o to ze udalo mi sie po dlugich zmaganiach znalesc takie aby pasowaly do tego ots
bylbym wdzieczny jakby ktos mi pomogl zrobic cos z kupowaniem domkow bo nadal nie wiem jak to zrobic.
#up
to raczej nie to , dalej moge wybrac tylko zenskie outfity :/
Podobnych skryptow jest od groma w internecie :P
Z pozdrowieniami
Xidos
to to :) jak juz zrobiles chara to dla niego tez musisz sex=1 ustawic.
nadal czekam na odp.
P.S. zapomnialem dopisac do prosby o kupowaniu domkow: jak naprawic to ze jak na invisible podchodze gmem to debug wyskakuje tej osobie?
[QUOTE=kofel;3066140]AAC z poprawkąjest w SVN/QUOTE]
czyli gdzie bo na 1 stronie nic nie znalazlem ?
czyli tak: jak sie kupuje domki, jak zrobic zeby jak zaznacze male to sie robilo male a nie i tak i tak female jest i jak sie banuje :|
napisalem ze skrypty nie moje ;]
nadal czekam na odp na moje nowe pytania
bo z !buyhouse to takie cos mi na konsoli wyskakuje:
img220.imageshack.us/img220/8608/222qt5.jpg
Witam! Mam problem z udostepnieniem acc makera. Posiadam router dlink DI-604. Odblokowalem nastepujace porty 7171,8000,80,3306. Przekierowuje DynDNS Updater'em. Po wpisaniu w przegladarce mojego IP nic sie nie dzieje.
Ma ktos jakas propozycje ?!
// na OTS'a moga wchodzic
ht tp://i37.tinypic.com/2uj448h.jpg <-moje odblokowane porty
uzywam WAMPSERVER
jakeigo programu uzywasz? i czy wybra;es both w protocol do portu 80?
Moglby ktos mi pomoc? Dodam ze na localhoscie wszystko smiga.
A jesteś pewien że przekierowuje porty? Daj te swoje IP czy tam DynDNSa ;)
Jestem bo gdy podaje znajomym przekierowane IP to lacza to spokojnie wchodza na serwer.
A twoi znajomi sprawdzali adres w przeglądarce czy tylko ty? ;>
Killavus !
Podziwiam Cie =) robisz dobre serwery to jeszcze pomagasz innym nice =)
//Odpalam PvP-E na nim zobaczymy jak będzie się trzymać ;p
Przypominam tylko o tym, że wartoby było, żebyście przesyłali mi znalezione błędy. Naprawdę mi na tym zależy :).
Pozdrawiam
Killavus
Chcesz błędy to je masz ! ;p
to musiałem dodać w item.xml to są schody dokładnie i nie działały ;pKod:<item id="8372" name="dirt ramp">
<attribute key="floorchange" value="east"/>
</item>
<item id="8374" name="dirt ramp">
<attribute key="floorchange" value="west"/>
</item>
<item id="8376" name="dirt ramp">
<attribute key="floorchange" value="south"/>
</item>
<item id="8378" name="dirt ramp">
<attribute key="floorchange" value="north"/>
</item>
i Ghazbaran daje po 8 cc ?
22:26 You see an item of type 7591. to chyba ma być grat health potion nie podpisany ale działa ;p
z worm queen ? jakoś tak zamiast ciała jest normalna kusza od 80 lvl
=)
//Pozdro
jeszcze mam pytanie jak używać OTAdmin.exe bo nie mogę go rozgryźć ;p
Otwierasz sobie wiersz poleceń (cmd.exe, wpisz w "Uruchom"), przechodzisz do folderu z OTAdminem ("cd /D X:\Twoja\Ścieżka\Do\OTAdmina") i wywołujesz:
Zawsze możesz też stworzyć plik, zawrzeć komendy i wywołać za pomocą:Kod:OTAdmin.exe komendy
PozdrawiamKod:OTAdmin.exe < X:\Ścieżka\Do\Pliku
Killavus
mi wyskakuje bład ze nie ma pliko lua 5.1.dll czy jakos tak co zrobic?>
Sciagnij plik 5.1.dll i go wrzuc do folderu z aplikacja lub do folderu Windows/System32.
(Jesli uzywasz windowsa. :P)
C:\XXX\DeadTouch3.0rc2\otadmin>OTAdmin.exe server 10.0.1.131 7171
Syntax error in line 2 10.0.1.131
///////////////////////////////////
podczas zakladania postaciKod:Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]:
General error: 1 unrecognized token: "'d"' in C:\wamp\www\sys\dbLayer.php:10
Stack trace: #0 C:\wamp\www\sys\dbLayer.php(10): PDO->query('INSERT INTO `pl...')
#1 C:\wamp\www\mods\account.php(295): dbLayer::query('INSERT INTO `pl...') #2
C:\wamp\www\index.php(61): ModAccount->create_character() #3 {main} thrown in
C:\wamp\www\sys\dbLayer.php on line 10
efekt ?
runek nie ma w bp
/////////////////////////////////////
mam jeszcze jedno
robilem bp a w bp kolejne bp pelne mf
$bpz = bp 20 vol. zawierajacy 20 manasów
do bp lezącego na ziemi wkładałem $bpz lezące na ziemi i przy 3? 4 włożonych nagle dalej wkładać nie moglem chyba pisało "you cannot put more objects in this container ?" ale jak zamknąłem i ponownie otworzyłem to znowu wkładać moglem te $bpz tylko znowu się zacinało po 3 ? kolejnych $bpz
mam nadzieje ze pomogłem ;] Pozdrawiam
wchodze w speedyshare i nic wczytuje sie dlugo a potem polaczenie rpzerywa prosze o zhostowanie na rapdishare
Prosim o rehost.