DenZ
Zasłużony
- Joined
- Feb 23, 2011
- Messages
- 867
- Reaction score
- 31
- Age
- 29
Autor: Matt
Code:
local uid = XXXX -- unique id
local voc = 1 -- jak? profesje ma da? po naj?ciu na pod?og?
function onStepIn(cid, item, pos)
if item.uid == uid then
if voc == 1 then
msg = "Otrzymales profesje sorcerer."
else if voc == 2 then
msg "Otrzymales profesje druid."
else if voc == 3 then
msg = "Otrzymales profesje palladyn"
else if voc == 4 then
msg = "Otrzymales profesje knight."
else
return false
end
doPlayerSendTextMessage(cid, 4, msg)
doPlayerSetVocation(cid, voc)
end
return TRUE
end