LUA Wishingstone problem! menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Kallblodig's Avatar Contributor
    Reputation
    113
    Join Date
    Dec 2008
    Posts
    129
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Wishingstone problem!

    Heya dudes, My wishing stone works fine, exept for one thing,
    It supports all classes, but not DKs!
    Can you guys help me fix that? People at the server naggs about this 24/7 :P

    LUA:
    Code:
    local itemid = 99997
    function Item_Trigger(item, event, player)
        Item_menu(item, player)
    end
    
    function Item_menu(item, player)
     
        if (player:IsInCombat() == true) then
        player:SendAreaTriggerMessage("You are in combat!")
        else
        item:GossipCreateMenu(3543, player, 0)
        item:GossipMenuAddItem(4, "Leveling road start", 1, 0)
        item:GossipMenuAddItem(4, "Remove Resurrection Sickness", 2, 0)
        item:GossipMenuAddItem(4, "Mall", 3, 0)
        item:GossipMenuAddItem(4, "Stair event", 4, 0)
        item:GossipMenuAddItem(4, "Ring of Anahiliation PvP", 5, 0)
        item:GossipSendMenu(player)
        end
    end
    
    function OnSelect(item, event, player, id, intid, code)
    
        if (intid == 1) then
        player:Teleport(1, 4615.451172, -3863.259521, 944.180542)
        player:GossipComplete()
        end
    
        if (intid == 2) then
        player:LearnSpell(15007)
        player:UnlearnSpell(15007)
        player:GossipComplete()
        end
        
        if (intid == 3) then
        player:Teleport(1, -8510.530273, 2016.457642, 104.749130)
        player:GossipComplete()
        end
    
        if (intid == 4) then
        player:Teleport(1, -7756.266602, -4964.673340, 6.632889)
        player:GossipComplete()
        end
        
        if (intid == 5) then
        player:Teleport(1, -3639.852051, 1093.125610, 154.786072)
        player:GossipComplete()
        end
    end
    RegisterItemGossipEvent(99997,1,"Item_Trigger")
    RegisterItemGossipEvent(99997,2,"OnSelect")
    SQL, if its for any use :S
    Code:
    INSERT INTO `items` (`class`, `subclass`, `name1`, `name2`, `name3`, `name4`, `displayid`, `quality`, `buyprice`, `sellprice`, `itemlevel`, `ContainerSlots`, `unique`, `maxcount`, `bonding`, `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`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `delay`, `range`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `armor`, `block`, `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`, `allowableclass`, `allowablerace`, `RequiredSkill`, `RequiredSkillRank`, `RequiredSkillSubRank`, `RequiredFaction`, `RequiredFactionStanding`, `requiredlevel`, `inventorytype`, `quest_id`, `sheathID`, `itemset`, `MaxDurability`, `Description`, `socket_color_1`, `socket_color_2`, `socket_color_3`, `socket_bonus`, `entry`) VALUES ('8', '-1', 'Wishing Stone', 'Wishing Stone', 'Wishing Stone', 'Wishing Stone', '42629', '1', '0', '0', '0', '0', '1', '1', '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', '0', '0', '0', '0', '33208', '0', '579', '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', '1503', '1791', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '', '0', '0', '0', '0', '99997');
    Thanks! + rep to the one with the solution! <3

    LUA Wishingstone problem!
  2. #2
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is the item in the DB set for Requiredclass to be all classes? or no requirement? i would think that could possibly be the issue your having

  3. #3
    Kallblodig's Avatar Contributor
    Reputation
    113
    Join Date
    Dec 2008
    Posts
    129
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is what it says in HeidiSQL
    Entry: 99997
    Class:8
    Subclass:-1
    field4: -1
    Name 1-4 : wishingstone
    display ID: 42629
    quality:1
    flags:0
    buyprice: 0
    Sellprice: 0
    inventory type: 0
    Allowableclass: 0
    Allowable race: 0
    itemlevel: 0
    required level: 0
    Required rank:0
    Required Skill subrank: 0
    Req player rank: 0
    Req faction: 0
    Unique: 1
    maxcount: 1
    Containerslots: 0
    stat_type 1-10:0
    Stat_value: 0
    Scaledstatsdistribut: 0

    The rest is not needed, as far as I know. What should I change above?

  4. #4
    shadowslayer133's Avatar Active Member
    Reputation
    61
    Join Date
    May 2008
    Posts
    313
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Entry: 99997
    Class:8 <-- should be -1 i believe
    Subclass:-1

    Done by piersd
    Gamer tag - Midnight133

Similar Threads

  1. LUA script problem
    By uberhak3r in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 07-09-2008, 06:32 PM
  2. [Help] Fairly large Lua script problem
    By Muruk in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-16-2008, 09:03 PM
  3. LUA Scripting Problem
    By Knife in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 03-10-2008, 02:00 PM
  4. Lua scripts problem
    By Mr.Ice.Cold in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-02-2008, 11:44 AM
  5. .Lua portal problem
    By Kiev in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 01-12-2008, 10:49 AM
All times are GMT -5. The time now is 09:57 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search