[Issue] LUA Exchanger. menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Issue] LUA Exchanger.

    Yoh,

    I have an issue regarding an NPC I am scripting, I will just show you the sector where the problem is.



    Code:
    if(intid == 30) then
         local item = player:GetItemCount(19712)
        if item ~= nil or item > 20 then
          player:RemoveItem(19712, 10)
          player:AddItem(22013, 1)
      end
    end
    So, Here's the problem; It workes PERFECT if you have the required tokens.
    Altough when you DO NOT have the tokens, you'll get the item anyway. I've tried many different things, and I havn't found it yet.

    So my question is, Able to fix so if you DO NOT have the tokens, it will NOT give you the item?



    ~~ Babbaa

    [Issue] LUA Exchanger.
  2. #2
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Should be 'and', not 'or'

  3. #3
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It sure worked Spidey, thanks.
    +rep. :3
    "must spread"

Similar Threads

  1. Lua scripting Issue
    By jbryan9184 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 07-05-2008, 04:16 PM
  2. LUA Issues
    By orion5814 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-20-2008, 04:03 PM
  3. LUA STealth Script Issue
    By Lakotaness in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 06-17-2008, 01:22 AM
  4. [LUA Issue] Sudden self-targetting
    By Whitethebunny in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 06-07-2008, 09:06 PM
  5. [Issue] Lua Portals again.
    By ~ViVo~ in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 03-25-2008, 11:07 AM
All times are GMT -5. The time now is 04:45 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