[Lua] Can't do something menu

User Tag List

Results 1 to 8 of 8
  1. #1
    blackhex666's Avatar Corporal
    Reputation
    5
    Join Date
    Feb 2010
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] Can't do something

    Code:
    function Seyon_OnGossip(Unit, Event, player)
           Unit:GossipCreateMenu(1000, player, 0)
           Unit:GossipAddItem(0, "Trainer", 2, 0)
           Unit:GossipAddItem(0, "Return Home", 1, 0)
           Unit:GossipAddItem(0, "Heal Me", 6, 0)
           Unit:GossipAddItem(0, "Give me Food and Drink", 4, 0)
           Unit:GossipAddItem(0, "Quest of Honor", 5, 0)
           Unit:GossipSendMenu(player)
    end
    
    function Seyon_OnSubMenu(Unit, Event, player, id, intid, code)
              
           if (intid == 1) then
              player:Teleport(mapid, x, y, z)
           end
    
           if (intid == 2) then
              pUnit:SpawnCreature(NPCID, X,Y,Z)
           end
          
           if (intid == 3) then
              pUnit:FullCastSpellOnTarget(SPELLID, TARGET)
           end
     
           if (intid == 4) then
              player:AddItem(ItemID, 1)
              player:AddItem(ItemID, 1)
           end
    
           if (intid == 5) then
            
                     if (Plyr:GetTalentPoints(spec) == 30) then
                        Unit:QuestAddStarter(quest_id)
                     end
               
                     if (Plyr:GetTalentPoints(spec) == 60) then
                        Unit:QuestAddStarter(quest_id)
                     end
             
                     if (Plyr:GetTalentPoints(spec) == 80) then
                        Unit:QuestAddStarter(quest_id)
                     end
            end
    It`s not finished but i whant to now if it`s oke til now its a item no a Npc
    I used Plyr:GetTalentPoint because i diden`t find a level cheacker
    Last edited by Ground Zero; 03-06-2010 at 07:08 PM. Reason: [Code] Tags

    [Lua] Can't do something
  2. #2
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    level = player:GetLevel()
    if level == x then

    Is how you check levels.

    You can't have player and Plyr in the same function, either player: or Plyr: decide on one or the other.
    Same with pUnit and Unit, you can only use one per function, if you've got function xxxx (unit, event, player) you could only use unitoThis and playeroThat not pUnitoThis or plroThat.

    If it's a item then replace Unit with Item.


    Code:
    function Seyon_OnGossip(Unit, Event, player)
           Unit:GossipCreateMenu(1000, player, 0)
           Unit:GossipAddItem(0, "Trainer", 2, 0)
           Unit:GossipAddItem(0, "Return Home", 1, 0)
           Unit:GossipAddItem(0, "Heal Me", 6, 0)
           Unit:GossipAddItem(0, "Give me Food and Drink", 4, 0)
           Unit:GossipAddItem(0, "Quest of Honor", 5, 0)
           Unit:GossipSendMenu(player)
    end
    To

    Code:
    function Seyon_OnGossip(Item, Event, player)
           Item:GossipCreateMenu(1000, player, 0)
           Item:GossipAddItem(0, "Trainer", 2, 0)
           Item:GossipAddItem(0, "Return Home", 1, 0)
           Item:GossipAddItem(0, "Heal Me", 6, 0)
           Item:GossipAddItem(0, "Give me Food and Drink", 4, 0)
           Item:GossipAddItem(0, "Quest of Honor", 5, 0)
           Item:GossipSendMenu(player)
    end



  3. #3
    blackhex666's Avatar Corporal
    Reputation
    5
    Join Date
    Feb 2010
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    tnx alot again Ground Zero

  4. #4
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problems.

  5. #5
    blackhex666's Avatar Corporal
    Reputation
    5
    Join Date
    Feb 2010
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oke i approximate finish my first script i tried to see how is in wow but when i click on item no menu show up....just casting a spell or somthing like that and cooldown for item :-?? why?
    oo srry for my bad english
    Code:
    function Seyon_Trigger(item, event, player)
         Seyon_Menu(item, player)
    end
    
    function Seyon_Menu(Item, Event, player)
           Item:GossipCreateMenu(102, player, 0)
           Item:GossipAddItem(4, "Trainer", 2, 0)
           Item:GossipAddItem(4, "Return Home", 1, 0)
           Item:GossipAddItem(4, "Heal Me", 6, 0)
           Item:GossipAddItem(4, "Give me Food and Drink", 4, 0)
           Item:GossipAddItem(4, "Quest of Honor", 5, 0)
           Item:GossipSendMenu(player)
    	   
    end
    
    function Seyon_OnSelect(Item, Event, player, id, intid, code)
      if (player:IsInCombat() == true) then
       player:SendAreaTriggerMessage("|cff0000ffYou are in combat!You can`t use this !")
    	 else
    	 
           if (intid == 1) then
              player:CastSpell(8690)
           end
    
           if (intid == 2) then
              player:SpawnCreature(400500, X,Y,Z)
           end
          
           if (intid == 3) then
    	         if ( player:GetLevel() > 30) then 
                     player:CastSpellOnTarget(SPELLID, player)
    				 player:CastSpellOnTarget(SPELLID, player)
                 end
    			 
    			 if (player:GetLevel() < 60) then
    			  if (player:GetLevel() >60) then
    			      player:CastSpellOnTarget(SPELLID, player)
    				  player:CastSpellOnTarget(SPELLID, player)
    		      end
    			 end
    			 
    			 if (player:GetLevel() < 60) then
    			  if (player:GetLevel() > 60) then
    			      player:CastSpellOnTarget(SPELLID, player)
    				  player:CastSpellOnTarget(SPELLID, player)
    			  end
    			 end
    			   
    	   end
     
           if (intid == 4) then
              player:AddItem(ItemID, 1)
              player:AddItem(ItemID, 1)
           end
    
           if (intid == 5) then
            
                     if (player:GetLevel() == 30) then
                        player:QuestAddStarter(quest_id)
                     end
               
                     if (player:GetLevel() == 60) then
                        player:QuestAddStarter(quest_id)
                     end
             
                     if (player:GetLevel() == 80) then
                        player:QuestAddStarter(quest_id)
                     end
            end
     end		
    end
    
    RegisterItemGossipEvent(60200, 1, "Seyon_Trigger")
    RegisterItemGossipEvent(60200, 2, "Seyon_OnSelect")

  6. #6
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to use it on a item which has a use, try binding it to your Hearthstone and see if it works.

  7. #7
    blackhex666's Avatar Corporal
    Reputation
    5
    Join Date
    Feb 2010
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i tried with this item created by Jotox for Script Bob The Battle Bot
    http://www.mmowned.com/forums/emulat...erage-bot.html
    because i was layse to create an item)
    i will try with the Hearthstone and see what happens
    Code:
    INSERT INTO items (entry, class, subclass, field4, name1, displayid, quality, flags, buyprice, sellprice, inventorytype, allowableclass, allowablerace, itemlevel, requiredlevel, RequiredSkill, RequiredSkillRank, RequiredSpell, RequiredPlayerRank1, RequiredPlayerRank2, RequiredFaction, RequiredFactionStanding, `Unique`, maxcount, ContainerSlots, stat_type1, stat_value1, stat_type2, stat_value2, stat_type3, stat_value3, stat_type4, stat_value4, stat_type5, stat_value5, stat_type6, stat_value6, stat_type7, stat_value7, stat_type8, stat_value8, stat_type9, stat_value9, stat_type10, stat_value10, dmg_min1, dmg_max1, dmg_type1, dmg_min2, dmg_max2, dmg_type2, armor, holy_res, fire_res, nature_res, frost_res, shadow_res, arcane_res, delay, ammo_type, `range`, spellid_1, spelltrigger_1, spellcharges_1, spellcooldown_1, spellcategory_1, spellcategorycooldown_1, spellid_2, spelltrigger_2, spellcharges_2, spellcooldown_2, spellcategory_2, spellcategorycooldown_2, spellid_3, spelltrigger_3, spellcharges_3, spellcooldown_3, spellcategory_3, spellcategorycooldown_3, spellid_4, spelltrigger_4, spellcharges_4, spellcooldown_4, spellcategory_4, spellcategorycooldown_4, spellid_5, spelltrigger_5, spellcharges_5, spellcooldown_5, spellcategory_5, spellcategorycooldown_5, bonding, description, page_id, page_language, page_material, quest_id, lock_id, lock_material, sheathID, randomprop, randomsuffix, block, itemset, MaxDurability, ZoneNameID, mapid, bagfamily, TotemCategory, socket_color_1, unk201_3, socket_color_2, unk201_5, socket_color_3, unk201_7, socket_bonus, GemProperties, ReqDisenchantSkill, ArmorDamageModifier)
    VALUES (99499, 0, 8, -1, "Mall-Bot", 56884, 4, 0, 0, 0, 0, -1, -1, 999, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0,  0, 0,  0, 0,  0, 0,  0, 0,  0, 0,  0, 0,  0, 0,  0, 0,  0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33208, 0, 0, 3000, 1141, 49375, 0, 0, 30000, 1141, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, "A Mall in your Pocket!", 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);

  8. #8
    blackhex666's Avatar Corporal
    Reputation
    5
    Join Date
    Feb 2010
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oke i binded with Hearthstone same problem . i updated trunk and complied again and now my arcemu-world.exe crush when i click on the item :-??
    Heres a link to my CrushDumps
    DOWNLOAD*NOW!

    Tnx 4 helps

Similar Threads

  1. [Trading] looking for person who can buy me something in game
    By vianko in forum Diablo 3 Buy Sell Trade
    Replies: 8
    Last Post: 07-16-2012, 03:06 AM
  2. Can u do something for this.
    By mr.freaky in forum World of Warcraft General
    Replies: 5
    Last Post: 11-22-2009, 08:58 AM
  3. [Request] Can anyone do something to make the Time-Lost Proto-Drake more visible
    By murlocmangina in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 01-05-2009, 03:15 PM
  4. Can't find something in mywarcraftstudio
    By C-Death in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 07-08-2008, 04:15 PM
  5. Can someone compile something for me haveing trobble
    By *Alexz* in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 03-04-2008, 07:21 AM
All times are GMT -5. The time now is 05:48 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search