Kram23
New Member
- Joined
- Nov 29, 2011
- Messages
- 9
- Reaction score
- 0
Heyyy whats uppp guys, i have this script done by cbrm but for some reason its giving me a really stupid error that im playing around with to fix but icant get it to work loll
and the error is
if anyone can help me fix thanks! if not then can i have a new script with the same purpose?
This script is supposed to keep a player with the same outfit no matter what! Based on your vocation loll Credit to Cbrm
PHP:
-- Script by Cybermaster
-- Fix by Shawak
--Rescripted, based on vocations
--[[
[1] = Sorcerer
[2] = Druid
[3] = Paladin
[4] = Knight
[5] = Master Sorcerer
[6] = Elder Druid
[7] = Royal Paladin
[8] = Elite Knight
]]--
local outfits = {
[1] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
[2] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
[3] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
[4] = {lookType = 75, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
[5] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
[6] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
[7] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
[8] = {lookType = 301, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
}
function onLogin(cid)
local voc_id = getPlayerVocation(cid)
if getPlayerVocation(cid) > 0 then
doSetCreatureOutfit(cid, outfits[voc_id], -1)
end
return TRUE
end
and the error is
HTML:
[04/12/2011 10:06:21] Warning: [Event::checkScript] Can not load script. /scripts/Outfits.lua
[04/12/2011 10:06:21] data/creaturescripts/scripts/Outfits.lua:23: '}' expected (to close '{' at line 17) near '['
[04/12/2011 10:06:21] Reloaded all.
[04/12/2011 10:07:12] Warning: [Event::checkScript] Can not load script. /scripts/Outfits.lua
[04/12/2011 10:07:12] data/creaturescripts/scripts/Outfits.lua:18: unexpected symbol near '['
[04/12/2011 10:07:12] Reloaded creature events.
[04/12/2011 10:07:41] Warning: [Event::checkScript] Can not load script. /scripts/Outfits.lua
[04/12/2011 10:07:41] data/creaturescripts/scripts/Outfits.lua:23: '}' expected (to close '{' at line 17) near '['
[04/12/2011 10:07:41] Reloaded creature events.
if anyone can help me fix thanks! if not then can i have a new script with the same purpose?
This script is supposed to keep a player with the same outfit no matter what! Based on your vocation loll Credit to Cbrm