• 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 Push the Mammoth

Sync

Ø,ø
Joined
May 26, 2009
Messages
1,902
Reaction score
26
Location
Canada
Uhm, Heres another boredom script i made. Its like on RL tibia when your pushing over the mammoth. You have to be drunk and the storagevalue there is the storagevalue that you get from the npc to define you started the quest.

Here it is!

Code:
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,5000) and getCreatureCondition(cid, CONDITION_DRUNK) == TRUE then
   doPlayerSendTextMessage(cid,19,"You hustle the mammoth! What fun.")
       setPlayerStorageValue(cid,5001,1)  
   elseif getPlayerStorageValue(cid,5000) == FALSE then
             doPlayerSendTextMessage(cid,19,"Grrrr...") 
   else
      doPlayerSendTextMessage(cid,19,"You do not dare to hustle the mammoth!")
end
   end
 
Fixed and tabbed..
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(getPlayerStorageValue(cid, 5000) < 1 and getCreatureCondition(cid, CONDITION_DRUNK) == TRUE) then
		doPlayerSendTextMessage(cid, 19, "You hustle the mammoth! What fun.")
		setPlayerStorageValue(cid, 5001, 1)  
	elseif getPlayerStorageValue(cid,5000) == FALSE then
		doPlayerSendTextMessage(cid,19,"Grrrr...") 
	else
		doPlayerSendTextMessage(cid,19,"You do not dare to hustle the mammoth!")
	end
	return TRUE
end
 
@Chris,

Nice script.

LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(getPlayerStorageValue(cid, 5000) < 1 and getCreatureCondition(cid, CONDITION_DRUNK) == TRUE) then
		doPlayerSendTextMessage(cid, 19, "You hustle the mammoth! What fun.")
		setPlayerStorageValue(cid, 5001, 1)  
	elseif getPlayerStorageValue(cid,5000) == FALSE then
		doPlayerSendTextMessage(cid,19,"Grrrr...") 
	else
		doPlayerSendTextMessage(cid,19,"You do not dare to hustle the mammoth!")
	end
	return TRUE
end
 
and what if the mammoth sits over you?
 
o.O you don't have a "make storage 5000 False)... Just 5001. so you can infinite f**k with a mamoth ?!
 
Back
Top