Postado Abril 26, 2014 11 anos Olá, queria saber se teria como adicionar mais uma storage nesse script ele já usa a storage 12000 queria adicionar a 12004 no mesmo script teria como? se alguém me ajudar fico grato. local actio = {7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,7798,7799,8000,8001,8002,8003,8004,8005,8006,8007,8008,8009} local kpt = {[7780]={x=1225,y=1327,z=7}, [7781]={x=1210,y=1327,z=7}, [7782]={x=1195,y=1327,z=7}, [7783]={x=1194,y=1318,z=7}, [7784]={x=1210,y=1318,z=7}, [7785]={x=1225,y=1318,z=7}, [7786]={x=1282,y=1327,z=7}, [7787]={x=1267,y=1327,z=7}, [7788]={x=1252,y=1327,z=7}, [7789]={x=1282,y=1318,z=7}, [7790]={x=1267,y=1318,z=7}, [7791]={x=1252,y=1318,z=7}, [7798]={x=1153,y=1318,z=7}, [7799]={x=1138,y=1318,z=7}, [8000]={x=1123,y=1318,z=7}, [8001]={x=1153,y=1309,z=7}, [8002]={x=1138,y=1309,z=7}, [8003]={x=1123,y=1309,z=7}, [8004]={x=1177,y=1293,z=7}, [8005]={x=1177,y=1278,z=7}, [8006]={x=1177,y=1263,z=7}, [8007]={x=1186,y=1293,z=7}, [8008]={x=1186,y=1278,z=7}, [8009]={x=1186,y=1263,z=7}} function onStepIn(cid, item, position, fromPosition) if isInArray(actio,item.actionid) then if (getStorage(item.actionid) > 0) or (getCreatureStorage(cid,12000) < os.time()) then doTeleportThing(cid,fromPosition) doSendMagicEffect(getThingPos(cid),2) else sumonarena(item.actionid,cid) doSetStorage(item.actionid,1) doTeleportThing(cid,kpt[item.actionid]) end end return true end
Postado Abril 26, 2014 11 anos local actio = {7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,7798,7799,8000,8001,8002,8003,8004,8005,8006,8007,8008,8009}local kpt = {[7780]={x=1225,y=1327,z=7},[7781]={x=1210,y=1327,z=7},[7782]={x=1195,y=1327,z=7},[7783]={x=1194,y=1318,z=7},[7784]={x=1210,y=1318,z=7},[7785]={x=1225,y=1318,z=7},[7786]={x=1282,y=1327,z=7},[7787]={x=1267,y=1327,z=7},[7788]={x=1252,y=1327,z=7},[7789]={x=1282,y=1318,z=7},[7790]={x=1267,y=1318,z=7},[7791]={x=1252,y=1318,z=7},[7798]={x=1153,y=1318,z=7},[7799]={x=1138,y=1318,z=7},[8000]={x=1123,y=1318,z=7},[8001]={x=1153,y=1309,z=7},[8002]={x=1138,y=1309,z=7},[8003]={x=1123,y=1309,z=7},[8004]={x=1177,y=1293,z=7},[8005]={x=1177,y=1278,z=7},[8006]={x=1177,y=1263,z=7},[8007]={x=1186,y=1293,z=7},[8008]={x=1186,y=1278,z=7},[8009]={x=1186,y=1263,z=7}}function onStepIn(cid, item, position, fromPosition)if isInArray(actio,item.actionid) thenif (getStorage(item.actionid) > 0) or (getCreatureStorage(cid,12000) < os.time() or (getCreatureStorage(cid,12004) < os.time()) then doTeleportThing(cid,fromPosition)doSendMagicEffect(getThingPos(cid),2)elsesumonarena(item.actionid,cid)doSetStorage(item.actionid,1)doTeleportThing(cid,kpt[item.actionid])endendreturn trueend
Postado Abril 26, 2014 11 anos Autor local actio = {7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,7798,7799,8000,8001,8002,8003,8004,8005,8006,8007,8008,8009} local kpt = {[7780]={x=1225,y=1327,z=7}, [7781]={x=1210,y=1327,z=7}, [7782]={x=1195,y=1327,z=7}, [7783]={x=1194,y=1318,z=7}, [7784]={x=1210,y=1318,z=7}, [7785]={x=1225,y=1318,z=7}, [7786]={x=1282,y=1327,z=7}, [7787]={x=1267,y=1327,z=7}, [7788]={x=1252,y=1327,z=7}, [7789]={x=1282,y=1318,z=7}, [7790]={x=1267,y=1318,z=7}, [7791]={x=1252,y=1318,z=7}, [7798]={x=1153,y=1318,z=7}, [7799]={x=1138,y=1318,z=7}, [8000]={x=1123,y=1318,z=7}, [8001]={x=1153,y=1309,z=7}, [8002]={x=1138,y=1309,z=7}, [8003]={x=1123,y=1309,z=7}, [8004]={x=1177,y=1293,z=7}, [8005]={x=1177,y=1278,z=7}, [8006]={x=1177,y=1263,z=7}, [8007]={x=1186,y=1293,z=7}, [8008]={x=1186,y=1278,z=7}, [8009]={x=1186,y=1263,z=7}} function onStepIn(cid, item, position, fromPosition) if isInArray(actio,item.actionid) then if (getStorage(item.actionid) > 0) or (getCreatureStorage(cid,12000) < os.time() or (getCreatureStorage(cid,12004) < os.time()) then doTeleportThing(cid,fromPosition) doSendMagicEffect(getThingPos(cid),2) else sumonarena(item.actionid,cid) doSetStorage(item.actionid,1) doTeleportThing(cid,kpt[item.actionid]) end end return true end Coloquei aqui, mais quando abro o distro aparece esse erro:
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.