Obsdark
Member
- Joined
- Sep 25, 2011
- Messages
- 213
- Reaction score
- 9
¡¡¡Hey Oh!!!
I have 2 problems with this Script:
1) the script must say than after activate the first lever (ValueGM) the player can activate the other 5 levers. and after he active the other 5 levers (6 in total) the script activate a variable (castletake1) for be used in another script (who is actualy, ready and working
)
2) How i make the script send a text message? i just dont know how do it work.. :S
Just in case: this is the way i'm adding it to the action.XML
Please, i'll be very greatfull if you help me with that
And give Rep++
¡Bless and Cheers Up!
(Y)(Y)
-Obsdark-
I have 2 problems with this Script:
Code:
function onUse (cid, item, frompos, itemEx, topos)
castletake1 = 0
ValueGM = 0
Castle1Tower1 = 0
Castle1Tower2 = 0
Castle1Tower3 = 0
Castle1Tower4 = 0
CastleMain1Tower1 = 0
if item.itemid == 1946 and item.uid == 9898 and ValueGM == 0 then
ValueGM = 1
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "¡All is working Properly!")
end
if item.itemid == 1946 and item.uid == 3211 and ValueGM == 1 and Castle1Tower1 == 0 then
Castle1Tower1 = 1
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "¡Ejecuted!")
end
if item.itemid == 1946 and item.uid == 3212 and ValueGM == 1 and Castle1Tower2 == 0 then
Castle1Tower2 = 1
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "¡Ejecuted!")
end
if item.itemid == 1946 and item.uid == 3213 and ValueGM == 1 and Castle1Tower3 == 0 then
Castle1Tower3 = 1
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "¡Ejecuted!")
end
if item.itemid == 1946 and item.uid == 3214 and ValueGM == 1 and Castle1Tower4 == 0 then
Castle1Tower4 = 1
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "¡Ejecuted!")
end
if item.itemid == 1946 and item.uid == 3215 and ValueGM == 1 and CastleMain1Tower1 == 0 then
CastleMain1Tower1 = 1
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "¡Ejecuted!")
end
if castletake1 == 0 and CastleMain1Tower1 == 1 and Castle1Tower1 == 1 and Castle1Tower2 == 1 and Castle1Tower3 == 1 and Castle1Tower4 == 1 and valueGM == 1
then
castletake1 = 1
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "¡All levers activated Succesfully!")
end
end
1) the script must say than after activate the first lever (ValueGM) the player can activate the other 5 levers. and after he active the other 5 levers (6 in total) the script activate a variable (castletake1) for be used in another script (who is actualy, ready and working
2) How i make the script send a text message? i just dont know how do it work.. :S
Just in case: this is the way i'm adding it to the action.XML
Code:
<action uniqueid="9898;3211;3212;3213;3214;3215" event="script" value="quests/LeversCastle1.lua"/>
Please, i'll be very greatfull if you help me with that
And give Rep++
¡Bless and Cheers Up!
(Y)(Y)
-Obsdark-