Advertisement
Rochet2

Untitled

Oct 30th, 2012
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. local questID = 63002
  2. local questgiver = 58000
  3. local mountname = "Argent Warhorse"
  4.  
  5. local function UnMount(unit, player)
  6.     player:Dismount()
  7.     player:SetCombatCapable(true)
  8.     player:SetPlayerSpeed(7)
  9.     unit:SendChatMessageToPlayer(14, 0, "You didn't last any longer? I'm not suprised!", player)
  10. end
  11.  
  12. local function questaccept(event, player, QuestID, unit)
  13.     if(questID == QuestID) then
  14.         player:SendBroadcastMessage("You've mounted the "..mountname..".")
  15.  
  16.         player:SetCombatCapable(false)
  17.         player:SetMount(28918)
  18.         player:SetPlayerSpeed(11)
  19.        
  20.         unit:SendChatMessageToPlayer(12, 0, "You better not fall off", player)
  21.         CreateLuaEvent(function() UnMount(unit, player) end, 60000, 1)
  22.     end
  23. end
  24.  
  25. RegisterServerHook(14, questaccept)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement