What's new

Problem z komendami Gma

FreeTek

User
Joined
Jun 10, 2010
Messages
25
Reaction score
0
Ot?? mam problem z komendami Gma gdy wpisuje /i id itema to nic si? nie dzieje
w czym mo?e by? problem? Wpisuj? z?? komend?? Tak samo jest z teleportacj? na pare kratek wpisuje /a i np. 4 i nie dzia?a. Prosz? o szybk? pomoc. M?j ots stoi na silniku tfs mystic spirit i jest on pod tibi? 8.11.
Z g?ry bardzo dzi?kuj?.
 

FreeTek

User
Joined
Jun 10, 2010
Messages
25
Reaction score
0
Odp: Problem z komendami Gma

Nie mam pliku commands.xml, w talkactions.xml nie ma nic o komendach gma ,a moja posta? ma group_id 3
 

Szybol

Advanced User
Joined
Apr 14, 2008
Messages
210
Reaction score
30
Age
31
Odp: Problem z komendami Gma

Dodaj now? komende do Talkactions

nowa linia w talkactions.xml:
<talkaction words="/i" filter="first word" script="id.lua" />

skrypt o nazwie id.lua kt?ry znajdzie si? w folderze scripts:
-- Szybol OTS Engine --

local COMMAND_ACCESS = 3 -- id gma + w g?r?, czyli np: [3,4,5,6,itp]

function onSay(cid, words, param)
if(getPlayerAccess(cid) > COMMAND_ACCESS)then
local id = tonumber(param)
if(id > 0 and id <= 20028)then
doPlayerGiveItem(cid, id, 1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED)
doPlayerSendCancel(cid, getItemName(id).." it was created.")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, words.." "..param)
else
doPlayerSendCancel(cid, "False item id!")
return FALSE
end
else
doPlayerSendCancel(cid, "You can not execute this command.")
end
return TRUE
end

Prosz? bardzo, sam u?ywam tego skryptu, poniewa? nie crashuje silnika ;)
 
Top