-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
[Aberto] Base PokeHand Servidor+Cliente+Soucer (2025)
By Poke Hero,
- pokehand
- base shiny
- (and 1 more)
- 3 replies
- 5970 views
-
- 35 replies
- 16424 views
-
- 0 answers
- 1026 views
-
- 0 replies
- 494 views
-
- 0 answers
- 519 views
-

Question
Duhisback 29
Amigos gostaria de pedir a ajuda de vocês que entendem bastante de scripts ou seja a vocês que são hackers nos scripts kkkk
tou com um problema na bike que não sei arrumar tipo a bike só pode ser usada quando estiver equipada no SLOT "RING" certo isso eu consegui botar mas eu quero que quando tiver montado na bike que tiver com a storage 5700, não pudesse tirar o item do SLOT RING nem dar trade no item enquanto ele estivesse ali alguém pode min ajudar?
dou rep e muitos outros que precisa desse script tbm vai dar rep+
Obs: storage que ganha quando tá montado na bike é 5700 id da bike 12774
Pessoal quem for ajudar só pedir o script que vc quer ver q eu mando
Script da Bike
local function BikeSpeedOn(cid, t)
setPlayerStorageValue(cid, t.s, t.speed)
doChangeSpeed(cid, -getCreatureSpeed(cid))
doChangeSpeed(cid, t.speed)
end
local function BikeSpeedOff(cid, t)
setPlayerStorageValue(cid, t.s, -1)
doRegainSpeed(cid)
end
local t = {text='Mount, bike!', dtext='Demount, bike!', s=5700, speed = 3000}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = getThingPos(cid)
if getPlayerSlotItem(cid, CONST_SLOT_RING).uid ~= item.uid then
doPlayerSendCancel(cid, "Dinghy in the right place in to use")
return true
end
if getPlayerStorageValue(cid, 17001) >= 1 or getPlayerStorageValue(cid, 63215) >= 1 or
getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 75846) >= 1 or
getPlayerStorageValue(cid, 6598754) >= 1 or getPlayerStorageValue(cid, 6598755) >= 1 then --alterado v1.9
return doPlayerSendCancel(cid, "You can't do that right now.")
end
if getPlayerStorageValue(cid, t.s) <= 0 then
doSendMagicEffect(pos, 177)
doCreatureSay(cid, t.text, 19)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'Voce montou na bike.')
BikeSpeedOn(cid, t)
if getPlayerSex(cid) == 1 then
doSetCreatureOutfit(cid, {lookType = 1787}, -1)
else
doSetCreatureOutfit(cid, {lookType = 1619}, -1)
end
else
doSendMagicEffect(pos, 177)
doCreatureSay(cid, t.dtext, 19)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'Voce saiu da bike.')
BikeSpeedOff(cid, t)
doRemoveCondition(cid, CONDITION_OUTFIT)
end
return true
end
Edited by EduzinhonhoLink to comment
https://xtibia.com/forum/topic/239618-pedido-de-script-para-n%C3%A3o-mover-bike-quando-tiver-no-slot-ring/Share on other sites
4 answers to this question
Recommended Posts