• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Cult Piano Scripts TFS 0.3.6pl1

Bulet

Knight of Apocalypse
Joined
Jul 12, 2009
Messages
183
Reaction score
9
Location
Brazil
If any one can put these all scripts in only one who work i will prefer but mine old one inst work and i made that to got engraved crossbow quest

ADD that on.:
actions.xml
Code:
	<!-- Cult Piano -->
     <action itemid="6087" event="script" value="CultPiano/pverse.lua"/> -- First Verse
     <action itemid="6088" event="script" value="CultPiano/sverse.lua"/> -- Second Verse
     <action itemid="6089" event="script" value="CultPiano/tverse.lua"/> -- Third Verse
     <action itemid="6090" event="script" value="CultPiano/qverse.lua"/> -- Fourth Verse
     <action uniqueid="60034" event="script" value="CultPiano/cultpiano.lua"/> -- Liberty Bay Cult Piano

Now in actions folder create a folder named CultPiano and put these files on that.

Open map editor and set Cult Piano ActionID 60034 just that and put files on CultPiano folder
pianoe.jpg


If i help you REP +++ ME :peace:
 

Attachments

Last edited:
Code:
local VERSES = {6087, 6088, 6089, 6090}
local verseStr = {
	[6087] = "first",
	[6088] = "second",
	[6089] = "third",
	[6090] = "fourth and last"
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.actionid == 60034 then
		if getPlayerStorageValue(cid, 6087) == 1 and getPlayerStorageValue(cid, 6088) == 1 and getPlayerStorageValue(cid, 6089) == 1 and getPlayerStorageValue(cid, 6090) == 1 then
			doSendMagicEffect(toPosition, CONST_ME_SOUND_GREEN)
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
			doTeleportThing(cid, {x=toPosition.x-3, y=toPosition.y, z=toPosition.z}, FALSE)
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
			return TRUE
		end
	elseif isInArray(VERSES, item.itemid) == TRUE then
		if getPlayerStorageValue(cid, item.itemid) < 1 then
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_SOUND_GREEN)
			doRemoveItem(item.uid)
			setPlayerStorageValue(cid, item.itemid, 1)				
			doCreatureSay(cid, "You have learned the "..verseStr[item.itemid].." verse of a secret hymn.", TALKTYPE_ORANGE_1)
		else
			doCreatureSay(cid, "You have already learned this verse.", TALKTYPE_ORANGE_1)
		end
		return TRUE
	end
	return FALSE
end
 
@ Cyko
You must spread some Reputation around before giving it to Cykotitan again.

I cant give more rep for your helps .... rsrsr ^_^

Tks again bro
 
Back
Top