
Nie tylko o Tibii i OTS...
Ma ktoś Acc Maker Devland 8.1?
Bardzo proszę!!! :(
Offline
Dimek
[Musisz być zalogowany, aby przeczytać ukrytą wiadomość]


Offline
O dzięki. Zaraz dam edit i napiszę czy działa.
@Edit
Lol.... Co, gdzie i jak? ;P
Nie za bardzo wiem gdzie to włożyć żeby 111111/tibia działające się zrobiło....
@Edit2
A może lepiej podaj mi skrypty...?
Devland 8.0/8.1 , chodzi mi o:
data/accounts/111111
i
data/players/Account Manager
Jakbyś mógł to podaj mi zawartości tych plików. Z góry dzięki!
Ostatnio edytowany przez Monata (2010-07-27 11:21:44)
Offline
Dimek
Tobie chodzi o npc,które robi konto ? bo to też mam tylko powiedz bo coś sie nie roziemiemy
Ostatnio edytowany przez Dimek (2010-07-27 11:23:46)


Offline
Chodzi mi o npc co robi konto... To 111111/tibia: data/accounts/111111 i data/players/Account Manager
Offline
Dimek
1. Najpierw musimy zrobić pomieszczenie w którym będzie nasz AM. Nie powinien mieć on możliwości poruszania się i dostępu do innych graczy!
2. Tworzymy postać AM. Otwieramy folder ots/data/accounts i
tworzymy plik 1.xml. Następnie wklejamy do niego to:
Spoiler:
<?xml version="1.0"?>
<account pass="1" premDays="0" premEnd="1191165058"><characters><character name="Account Manager"/></characters></account>
Teraz przechodzimy do folderu ots/data/players i tworzymy plik Account Manager.xml. Jego zawartość będzie następująca:
Spoiler:
<?xml version="1.0" encoding="UTF-8"?>
<player name="Account Manager" id="1" account="1" sex="1" lookdir="0" exp="4200" voc="0" level="8" access="0" groupflags="0" cap="470" maglevel="0" soul="100" maxdepotitems="1000" lastlogin="0" lastlogout="0" skullticks="0">
<spawn x="100" y="100" z="11"/>
<temple x="100" y="100" z="11"/>
<lostpercent loss_experience="10" loss_mana="10" loss_skills="10"/>
<health now="185" max="185"/>
<mana now="35" max="35" spent="1187930"/>
<look type="75" head="116" body="114" legs="114" feet="114" addons="0"/>
<guild name="" rank="" nick="" id=""/>
<skills>
<skill skillid="0" level="15" tries="0"/>
<skill skillid="1" level="15" tries="0"/>
<skill skillid="2" level="15" tries="0"/>
<skill skillid="3" level="15" tries="0"/>
<skill skillid="4" level="15" tries="0"/>
<skill skillid="5" level="15" tries="0"/>
<skill skillid="6" level="15" tries="0"/>
</skills>
<addons/>
<deaths/>
<inventory/>
<depots/>
<storage>
<data key="1222" value="0"/>
</storage>
<viplist/>
<knownspells/>
<conditions/>
</player>
W pogrubionym miejscu wpisujemy jego respawn i temple (radzę to samo co w respawn).
Ważną rzeczą jest to aby nasz manager miał atrybut "Tylko do odczytu". W tym celu naciskamy prawym przyciskiem myszy na plik z AM, wybieramy z listy "Właściwości" i zaznaczamy ptaszka przy "Tylko do odczytu", naciskamy OK.
3. Pozostajemy w folderze z poprzedniego pkt., tworzymy w nim plik newplayer.txt.
4. Przechodzimy do ots/data/talkactions i otwieramy plik talkactions.xml dodajemy do niego następujące linijki:
Spoiler:
<talkaction words="^hi" script="accmaker.lua" />
<talkaction words="^name" script="accmaker.lua" />
<talkaction words="^sex" script="accmaker.lua" />
<talkaction words="^voc" script="accmaker.lua" />
<talkaction words="^accn" script="accmaker.lua" />
<talkaction words="^pass" script="accmaker.lua" />
<talkaction words="^end" script="accmaker.lua" />
<talkaction words="^no" script="accmaker.lua" />
5. W ots/data/talkactions/scripts tworzymy plik accmaker.lua. Otwieramy go notatnikiem i wklejamy do niego to:
Spoiler:
-- Account Manager by Smoczek Leon --
function parseFile( file )
array = {}
for line in file:lines( ) do
table.insert( array, line )
end
return array
end
function onSay(cid, words, param)
-- options --
local templepos = {x=1000, y=1000, z=7} -- temple position
local head = 2480 -- helmet
local backpack = 1988 -- backpack
local armor = 2464 -- armor
local right = 2412 -- weapon
local left = 2530 -- shield
local legs = 2468 -- legs
local feet = 2643 -- boots
local ammo = 2052 -- ammo/light
-- end options --
local state = getPlayerStorageValue(cid,1222)
if words == "^hi" and state == 0 then
doPlayerSendTextMessage(cid,24, "Welcome! I create your characteron this serwer. If i mistake say \"^no\".")
doPlayerSendTextMessage(cid,24, "OK, your name?")
doPlayerSendTextMessage(cid,25, "^name \"your_nick")
setPlayerStorageValue(cid,1222, 1)
elseif words == "^name" and state == 1 then
if string.len(param) <= 15 then
if string.find(param, '^[a-zA-Z0-9 -]+$') then
if io.open("data/players/"..param..".xml" , "r") == nil then
f = io.open("./data/players/newplayer.txt", "w")
f:write(""..param.."\n")
f:close()
setPlayerStorageValue(cid,1222, 2)
doPlayerSendTextMessage(cid,24, "OK, "..param..". It serve sex.")
doPlayerSendTextMessage(cid,25, "^sex \"male ^sex \"female")
else
doPlayerSendTextMessage(cid,24, "Sorry, this name is busy!")
doPlayerSendTextMessage(cid,25, "^name \"your_new_nick")
end
else
doPlayerSendTextMessage(cid,24, "Sorry, this name have impermissible signs!")
doPlayerSendTextMessage(cid,25, "^name \"your_new_nick")
end
else
doPlayerSendTextMessage(cid,24, "Sorry, max is 15 letters!")
doPlayerSendTextMessage(cid,25, "^name \"your_new_nick")
end
elseif words == "^sex" and state == 2 then
if string.lower(param) == "male" then
f = io.open("./data/players/newplayer.txt", "a+")
f:write("1\n")
f:write("male\n")
f:write("128\n")
f:close()
setPlayerStorageValue(cid,1222, 3)
doPlayerSendTextMessage(cid,24, "OK, \"male\". Vocation?")
doPlayerSendTextMessage(cid,25, "^voc \"druid ^voc \"sorcerer ^voc \"paladin ^voc \"knight")
elseif string.lower(param) == "female" then
f = io.open("./data/players/newplayer.txt", "a+")
f:write("0\n")
f:write("female\n")
f:write("136\n")
f:close()
setPlayerStorageValue(cid,1222, 3)
doPlayerSendTextMessage(cid,24, "OK, \"female\". Vocation?")
doPlayerSendTextMessage(cid,25, "^voc \"druid ^voc \"sorcerer ^voc \"paladin ^voc \"knight")
else
doPlayerSendTextMessage(cid,24, "Hum? Repeat.")
doPlayerSendTextMessage(cid,25, "^sex \"male ^sex \"female")
end
elseif words == "^voc" and state == 3 then
if string.lower(param) == "sorcerer" then
f = io.open("./data/players/newplayer.txt", "a+")
f:write("1\n")
f:write("sorcerer\n")
f:close()
setPlayerStorageValue(cid,1222, 4)
doPlayerSendTextMessage(cid,24, "\"Sorcerer\". Now say me what you want account number (6 digits).")
doPlayerSendTextMessage(cid,25, "^accn \"your_account_number")
elseif string.lower(param) == "druid" then
f = io.open("./data/players/newplayer.txt", "a+")
f:write("2\n")
f:write("druid\n")
f:close()
setPlayerStorageValue(cid,1222, 4)
doPlayerSendTextMessage(cid,24, "\"Druid\". Now say me what you want account number (6 digits).")
doPlayerSendTextMessage(cid,25, "^accn \"your_account_number")
elseif string.lower(param) == "paladin" then
f = io.open("./data/players/newplayer.txt", "a+")
f:write("3\n")
f:write("paladin\n")
f:close()
setPlayerStorageValue(cid,1222, 4)
doPlayerSendTextMessage(cid,24, "\"Paladin\". Now say me what you want account number (6 digits).")
doPlayerSendTextMessage(cid,25, "^accn \"your_account_number")
elseif string.lower(param) == "knight" then
f = io.open("./data/players/newplayer.txt", "a+")
f:write("4\n")
f:write("knight\n")
f:close()
setPlayerStorageValue(cid,1222, 4)
doPlayerSendTextMessage(cid,24, "\"Knight\". Now say me what you want account number (6 digits).")
doPlayerSendTextMessage(cid,25, "^accn \"your_account_number")
else
doPlayerSendTextMessage(cid,24, "Hum? Repeat.")
doPlayerSendTextMessage(cid,25, "^voc \"druid ^voc \"sorcerer ^voc \"paladin ^voc \"knight")
end
elseif words == "^accn" and state == 4 then
if string.len(param) == 6 then
if string.find(param, '^[0-9]+$') then
if io.open("data/accounts/"..param..".xml" , "r") == nil then
f = io.open("./data/players/newplayer.txt", "a+")
f:write(""..param.."\n")
f:close()
setPlayerStorageValue(cid,1222, 5)
doPlayerSendTextMessage(cid,24, "OK, "..param..". Password?")
doPlayerSendTextMessage(cid,25, "^pass \"your_password")
else
doPlayerSendTextMessage(cid,24, "Sorry, this number is busy!")
doPlayerSendTextMessage(cid,25, "^accn \"your_new_account_number")
end
else
doPlayerSendTextMessage(cid,24, "Use only digits!")
doPlayerSendTextMessage(cid,25, "^accn \"your_new_account_number")
end
else
doPlayerSendTextMessage(cid,24, "Sorry, max is 6 digits!")
doPlayerSendTextMessage(cid,25, "^accn \"your_new_account_number")
end
elseif words == "^pass" and state == 5 then
if string.len(param) <= 15 then
if string.find(param, '^[a-zA-Z0-9 -]+$') then
f = io.open("./data/players/newplayer.txt", "a+")
f:write(""..param.."\n")
f:close()
setPlayerStorageValue(cid,1222, 6)
player = parseFile(io.open( "./data/players/newplayer.txt", "r" ))
doPlayerSendTextMessage(cid,24, "Hum, this is end. Name: "..player[1]..", sex: "..player[3]..", vocation: "..player[6]..", password: "..player[7]..", account number: "..player[8]..". If all is god say")
doPlayerSendTextMessage(cid,25, "^end")
doPlayerSendTextMessage(cid,24, "If no, say")
doPlayerSendTextMessage(cid,25, "^no")
else
doPlayerSendTextMessage(cid,24, "Sorry, impermissible signs!")
doPlayerSendTextMessage(cid,25, "^pass \"your_new_password")
end
else
doPlayerSendTextMessage(cid,24, "Sorry, max is 15 sings!")
doPlayerSendTextMessage(cid,25, "^pass \"your_new_password")
end
elseif words == "^end" and state == 6 then
f = io.open("./data/accounts/"..player[7]..".xml", "w")
f:write("<?xml version=\"1.0\"?>\n<account pass=\""..player[8].."\" premDays=\"0\" premEnd=\"1191165058\"><characters><character name=\""..player[1].."\"\/><\/characters><\/account>")
f:close()
local playersxml = parseFile(io.open( "./data/players/players.xml", "r" ))
f = assert(io.open("./data/players/players.xml", "w+"))
f = io.open("./data/players/players.xml", "w+")
table.remove(playersxml)
local guid = #playersxml
table.insert(playersxml," <player guid=\""..guid.."\" name=\""..player[1].."\"\/>")
table.insert(playersxml,"<\/players>")
for i = 1, #playersxml do
f:write(""..playersxml[i].."\n")
end
f:close()
f = io.open("./data/players/"..player[1]..".xml", "w")
f:write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<player name=\""..player[1].."\" id=\""..guid.."\" account=\""..player[7].."\" sex=\""..player[2].."\" lookdir=\"0\" exp=\"4200\" voc=\""..player[5].."\" level=\"8\" access=\"0\" groupflags=\"0\" cap=\"470\" maglevel=\"0\" soul=\"100\" maxdepotitems=\"1000\" lastlogin=\"0\" lastlogout=\"0\" skullticks=\"0\">\n <spawn x=\""..templepos.x.."\" y=\""..templepos.y.."\" z=\""..templepos.z.."\"\/>\n <temple x=\""..templepos.x.."\" y=\""..templepos.y.."\" z=\""..templepos.z.."\"\/>\n <lostpercent loss_experience=\"10\" loss_mana=\"10\" loss_skills=\"10\"\/>\n <health now=\"185\" max=\"185\"\/>\n <mana now=\"35\" max=\"35\" spent=\"1187930\"\/>\n <look type=\""..player[4].."\" head=\"116\" body=\"114\" legs=\"114\" feet=\"114\" addons=\"0\"\/>\n <guild name=\"\" rank=\"\" nick=\"\" id=\"\"\/>\n <skills>\n <skill skillid=\"0\" level=\"15\" tries=\"0\"\/>\n <skill skillid=\"1\" level=\"15\" tries=\"0\"\/>\
<skill skillid=\"2\" level=\"15\" tries=\"0\"\/>\n <skill skillid=\"3\" level=\"15\" tries=\"0\"\/>\n <skill skillid=\"4\" level=\"15\" tries=\"0\"\/>\n <skill skillid=\"5\" level=\"15\" tries=\"0\"\/>\n <skill skillid=\"6\" level=\"15\" tries=\"0\"\/>\n <\/skills>\n <addons\/>\n <deaths\/>\n <inventory>\n <slot slotid=\"1\">\n <item id=\""..head.."\"\/>\n <\/slot>\n <slot slotid=\"3\">\n <item id=\""..backpack.."\">\n <inside>\n <item id=\"2120\"\/>\n <\/inside>\n <\/item>\n <\/slot>\n <slot slotid=\"4\">\n <item id=\""..armor.."\"\/>\n <\/slot>\n <slot slotid=\"5\">\n <item id=\""..right.."\"\/>\n <\/slot>\n <slot slotid=\"6\">\n <item id=\""..left.."\"\/>\n <\/slot>\n <slot slotid=\"7\">\n <item id=\""..legs.."\"\/>\n <\/slot>\n <slot slotid=\"8\">\n <item id=\""..feet.."\"\/>\n <\/slot>\
<slot slotid=\"10\">\n <item id=\""..ammo.."\"\/>\n <\/slot>\n <\/inventory>\n <depots\/>\n <storage\/>\n <viplist\/>\n <knownspells\/>\n <conditions\/>\n<\/player>\n")
f:close()
doPlayerSendTextMessage(cid,24, "You account and character is create.")
doPlayerSendTextMessage(cid,24, "Relogin use your account number ("..player[7]..") and password ("..player[8]..")")
elseif words == "^no" and state ~= -1 then
doPlayerSendTextMessage(cid,24, "Afff... They let's begin again. Name?")
doPlayerSendTextMessage(cid,25, "^name \"your_nick")
setPlayerStorageValue(cid,1222, 1)
end
end
W polach options ustawiamy pozycje temple nowych graczy i ich eq (teraz jest best eq rook).
6. Odpalamy nasz serwer, logujemy się na passy 1/1 i wybieramy naszego Account Managera. Rozmowe z nim rozpoczynamy mówiąc ^hi. Resztę dowiemy się z okna dialogowego.
To wszystko. Teraz mamy na naszym ots Account Managera w LUA, bez kompilacji, który dodaje graczy do pliku players.xml.
Powinno działać na tnt to działa więc musisz spróbować,ale napisz w temacie czy działa
Ostatnio edytowany przez Dimek (2010-07-27 11:31:50)


Offline
Teraz to nawet mi się silnik wyłącza... Ładuje serva i się wyłącza...
Offline
A tobie działa devland 8.0/8.1 i masz tam acc managera? Może zrób z niego archiva, zrób linka i mi podaj? ;P
Offline
Dimek
To spróbuj ten sposób
w config.lua dodajesz to(na samym dole):
Spoiler:
--------------------------------------------------------------------------------------
--------------------------- ACC MANAGER by Sylann -------------------------------
--------------------------------------------------------------------------------------
--Created player it's level, experience, health, mana, cap, pos(x, y, z)
newplayerlevel = 8///jaki ma mieć lvl(najlepiej niezmieniac)
newplayerexperience = 4200//ile ma mieć expa(najlepiej niezmieniać)
newplayerhealth = 185//ile ma miec hp
newplayermana = 35//ile ma miec many
newplayercap = 435// ile ma miec capa
newplayerposx = 1000 //pozycja x
newplayerposy = 1000 //pozycja y
newplayerposz = 7 //pozycja z(pietro)
--The accountmanager it's accountnumber, for checks with creating accs
managernumber = 111111 //na jakich numerach ma sie logowac
--Do you want the manager to let the player choose vocation? (in case of rookgaard;)
managerchoosevoc = "yes" //czy mozna wybierac swoją profesje(zalecane jak masz rooka
póżniej wchodzisz w data>players>accountmanager.xml i kasujesz wszystko i dodajesz to:
Spoiler:
<?xml version="1.0" encoding="UTF-8"?>
<player name="AccountManager" id="0" account="111111" sex="1" lookdir="2" exp="4200" voc="0" level="8" access="5" groupflags="0" cap="0" maglevel="0" soul="100" maxdepotitems="1000" lastlogin="1180803405" lastlogout="1180803496" skullticks="0">
<spawn x="1016" y="950" z="7"/>
<temple x="1000" y="1000" z="7"/>
<lostpercent loss_experience="10" loss_mana="10" loss_skills="10"/>
<health now="185" max="185"/>
<mana now="35" max="35" spent="360"/>
<look type="266" head="20" body="30" legs="40" feet="50" addons="0"/>
<guild name="" rank="" nick="" id="0"/>
<skills>
<skill skillid="0" level="10" tries="0"/>
<skill skillid="1" level="10" tries="0"/>
<skill skillid="2" level="10" tries="0"/>
<skill skillid="3" level="10" tries="0"/>
<skill skillid="4" level="10" tries="0"/>
<skill skillid="5" level="10" tries="0"/>
<skill skillid="6" level="10" tries="0"/>
</skills>
<addons/>
<deaths/>
<inventory>
<slot slotid="1">
<item id="2473"/>
</slot>
<slot slotid="3">
<item id="1991">
<inside>
<item id="2152" count="1"/>
</inside>
</item>
</slot>
<slot slotid="4">
<item id="2483"/>
</slot>
<slot slotid="5">
<item id="2643"/>
</slot>
<slot slotid="6">
<item id="2478"/>
</slot>
<slot slotid="10">
<item id="2513"/>
</slot>
</inventory>
<depots/>
<storage/>
<viplist/>
<knownspells/>
<conditions/>
</player>
Jak nie zadziała to ja już nie wiem w tym momencie wyczerpały sie moje pomysły


Offline
Nie działa...
A tobie działa devland 8.0/8.1 i masz tam acc managera? Może zrób z niego archiva, zrób linka i mi podaj? ;P
Offline