This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ruben381

Pages: [1]
1
Is there any way to hook into an event for an item purchase?

I'm trying to make a vendor where some items can only be purchased if certain conditions are met. There doesn't seem to be an 'item purchased' hook anywhere, but I'm wondering if anyone has done this in a more hacky way?

Ideally, I'd like to be able to do this:

function itemPurchased(event, player, item)
   local arbitraryCondition = GetPointsFor(player)
   local itemID = item:GetEntry()
   if(itemID == VENDOR_ITEM_1) then
         if(arbitraryCondition >= 3000)then
               return true;
         else
                 player:SendBroadcastMessage("Requires 3000 arbitrary condition points dumbass")
                  return false; (or, like, player:RemoveItem(itemID, 1))
         end
   end
end



Obviously, I'm using LUA. If anyone has any insight on this it would be greatly appreciated. Thanks guys.

2
Serverside Modding / [WotLk] [QUESTION]  Give DK Eyes to a player
« on: December 24, 2015, 09:15:24 am »
Hey all.

I'm wondering if there's a flag somewhere that would cause a player to have the Death Knight eye effect without being a Death Knight. Perhaps a spell effect that does the same thing? Not sure. If anyone knows, please leave a comment. Appreciate ya.

Pages: [1]