• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Help] Talkaction transform

Matians

New Member
Joined
Dec 5, 2010
Messages
40
Reaction score
1
Hi all, i am new, sorry for my bad inglish i no usually speak inglish but i am argentino and here speak spanish...

Ok.

I use, this script for change mi vocation and outfit...

Code:
   local postac1 = { -- 
   [1] = {0,1,7}, -- Klass ID
   [2] = {420,137,138}, -- Skin ID
   [3] = {1,1,100}}
   
   local postac2 = { --
   [1] = {2,8}, -- Klass ID
   [2] = {420,70}, -- Skin ID
   [3] = {0,100}} -- Level NEED
   
   local postac3 = { --
   [1] = {3,9}, -- Klass ID
   [2] = {5,322}, -- Skin ID
   [3] = {0,50}} -- Level NEED
   
   local postac4 = { --
   [1] = {4,10}, -- Klass ID
   [2] = {6,113}, -- Skin ID
   [3] = {0,50}} -- Level NEED
   
   local postac5 = { --
   [1] = {5,11}, -- Klass ID
   [2] = {50,100}, -- Skin ID
   [3] = {0,80}} -- Level NEED
   
   local postac6 = { --
   [1] = {6,12}, -- Klass ID
   [2] = {37,194}, -- Skin ID
   [3] = {0,50}} -- Level NEED

   local postac7 = { --
   [1] = {34,35,36,37,38,39}, -- Klass ID
   [2] = {103,116,220,219,250,9}, -- Skin ID
   [3] = {0,50,120,175,275,350}} -- Level NEED
   
   local postac8 = { --
   [1] = {40,41,42,43,44,45}, -- Klass ID
   [2] = {30,289,94,111,119,67}, -- Skin ID
   [3] = {0,50,120,175,275,350}} -- Level NEED
   
   local postac9 = { --
   [1] = {46,47,48,49,50,51}, -- Klass ID
   [2] = {332,329,331,326,327,330}, -- Skin ID
   [3] = {0,50,120,175,275,350}} -- Level NEED
   
   transform(cid, postac1)
   transform(cid, postac2)
   transform(cid, postac3)
   transform(cid, postac4)
   transform(cid, postac5)
   transform(cid, postac6)
   transform(cid, postac7)
   transform(cid, postac8)
   transform(cid, postac9)
   
   
   
   return true
   end
   
   
   
   
       function transform(cid, parameter)
           for i = 1, #parameter[1] do
               if i >= #parameter[1] then
                   elseif getPlayerLevel(cid) < parameter[3][i+1] and getPlayerVocation(cid) == parameter[1][i] then
                           doPlayerSendCancel(cid, "Required level is ".. parameter[3][i+1] .." to transform!")
                   elseif getPlayerLevel(cid) >= parameter[3][#parameter[3]] and getPlayerVocation(cid) == parameter[1][#parameter[1]] then
                           doPlayerSendCancel(cid, "Its u last Transform!")
                elseif getPlayerVocation(cid) == parameter[1][i] and getPlayerLevel(cid) >= parameter[3][i+1] then
                           doPlayerSetVocation(cid, parameter[1][i+1])
                           local outfit = {lookType = parameter[2][i+1] , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
                           doSetCreatureOutfit(cid, outfit, -1)
                           doSendMagicEffect(getCreaturePosition(cid), 3)
                        doPlayerSendCancel(cid, "Transform Success.")
						
						
                    return true
                   end
               end
		   end

I use cryson daimon (0.3.6pl1 i have the sources of server)

My problem, is when i use this talkaction, my vocation change 1 to 7 and outfit change to 420 or 138 (i no remember). Ok, when i logout and login again my vocation change to 1 and outfit change 420 i need help plis. Very thanxz :D

- - - Updated - - -

Bump
 
You need script to creaturescript.
example:
if getPlayerVocation == 1 then
doPlayerChangeOutfit(cid, 21)
return true
end

if i know what you mean :D

Rly broken english
 
You need script to creaturescript.
example:
if getPlayerVocation == 1 then
doPlayerChangeOutfit(cid, 21)
return true
end

if i know what you mean :D

Rly broken english

Thanx +rep, my problem now is, my vocation example...

I connected to server, and i say Transform my vocation change the 2 to 8. When i logout and login my vocation change, why? My problem is what my vocation change when i logout and login, you have any script what when i logout and login my vocation no change :D Thanx.
 
Back
Top