[Release]  Lua Craze PvP System menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] Lua Craze PvP System

    Here is Script that i made for WoW-Craze
    Killing a player from the opposite faction gives you Token and Gold.
    You must have LuaHypArc to get this working...
    You can get it from here:
    LuaHypArc - Revision 23: /installer
    PVPCRAZE.LUA
    Code:
    function CrazePvPReward(event, pPlayer, pKilled)
                    pPlayer:AddItem(TOKENID, AMOUNT)
                    pPlayer:DealGoldMerit(20000)
                    pKilled:DealGoldCost(50000)
                    end
    RegisterServerHook(23, "CrazePvPReward")
    Just Change TOKENID to id of token that you want to get while killing and AMOUNT for how much you want to get...
    Credits:
    Trle94 AkA ONLYKL from LUNAR-SCR


    [Release]  Lua Craze PvP System
  2. #2
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No Comments? :/


  3. #3
    Apple Pi's Avatar Active Member
    Reputation
    50
    Join Date
    Feb 2009
    Posts
    108
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Meh, this looks an aweful lot like the PVP script that is already included in Arcemu's Extra Scripts. All you seemed to do was put it in LUA format.

    Code:
    /*
     * ArcScript Scripts for Arcemu MMORPG Server
     * Copyright (C) 2008 Arcemu Team
     * Copyright (C) 2007 Moon++ <http://www.moonplusplus.com/>
     *
     * This program is free software: you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * any later version.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
     */
    
    //Made by ???
    //Modified by WigSplitta whole code
    //Re-Modified by HalestormXV (Added More Features)
    //Random Dice Concept to Kuraria for Helping HalestormXV
    //Modified by Neo_mat
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    #define TokenID 19712 //set token id here
    
    void onPvpKill(Player* pPlayer)
    {
        int die;
        die = rand()%5 + 1;
        if (die <= 1)
        {
            Item *item;
            item = objmgr.CreateItem( TokenID , pPlayer);
            item->SetUInt32Value(ITEM_FIELD_STACK_COUNT,1);
            item->SoulBind();
            if(!pPlayer->GetItemInterface()->AddItemToFreeSlot(item))
            {
                pPlayer->GetSession()->SendNotification("No free slots were found in your inventory!");
                item->DeleteMe();
            }
            else
            {
                SlotResult *lr = pPlayer->GetItemInterface()->LastSearchResult();
                pPlayer->GetSession()->SendItemPushResult(item,false,true,false,true,lr->ContainerSlot,lr->Slot,1);
            }
        }
    }
    
    void SetupPvPToken(ScriptMgr * mgr)
    {
        mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, (void*)onPvpKill);
    }
    What once was Moonblade rose from the ashes as Apple Pi!

  4. #4
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep i made it in Lua... Because some guys wont use C++ scripts because with many C++ scripts server is unstabble...


  5. #5
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Looks good, +Rep.

  6. #6
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Jadd +Rep back if I can xD


  7. #7
    Reflection's Avatar Legendary
    Reputation
    783
    Join Date
    Mar 2008
    Posts
    3,377
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice work, could prove useful to someone. Repped

    Freelance Digital Artist
    https://reflectionartwork.deviantart.com
    You did not desert me
    My brothers in arms


  8. #8
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks you Reflection for comment +rep back


  9. #9
    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)
    I've seen this posted on Ac-web a few months ago, if my memory serves me correct it is the exact same. Ill check for a link now.

    Edit: Found it.

    It resembles this script, I took that part out of it a few weeks ago to add to my server, which is how I knew i'd seen it before.
    http://www.ac-web.org/forums/scripts...vp-system.html

    Code:
    --[ SERVER_HOOK_GRANT_REWARD ]--
    function GrantPvPReward(event, pPlayer, pKilled)
                           pPlayer:AddItem(token_id, amount) -- edit token_id to your entry and amount
                           pPlayer:GiveHonor(200) -- 200 honor, change to your likings
                           pPlayer:DealGoldMerit(200000)
                           pKilled:DealGoldCost(200000)
    Last edited by Ground Zero; 11-05-2009 at 07:48 AM.

  10. #10
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe im not sure :S Because i codded it alone :S


  11. #11
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    they have for honor i dont have So its not same.. I made this for Craze-wow


  12. #12
    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)
    Just saying it looks the same, If you didn't copy it, Good job

  13. #13
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I didnt Thanks you... +Rep for comments :P
    Edit- I need to wait 24hrs so i can rep you xD


  14. #14
    [IceCreaM]'s Avatar Member
    Reputation
    4
    Join Date
    Nov 2008
    Posts
    77
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks

  15. #15
    Reflection's Avatar Legendary
    Reputation
    783
    Join Date
    Mar 2008
    Posts
    3,377
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Trle94, why are you repping just for comments? o.O I mean, they're not exactly constructive criticism. Could be mistaken for reptrading

    Freelance Digital Artist
    https://reflectionartwork.deviantart.com
    You did not desert me
    My brothers in arms


Page 1 of 2 12 LastLast

Similar Threads

  1. [Release][LUA][SQL] Selin Fireheart
    By sheepking in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 05-11-2008, 11:40 AM
  2. [Release Lua] One of My First Lua Scripts
    By Juicyz in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 03-28-2008, 02:03 AM
  3. [Share/Release] Lua Portal
    By ~ViVo~ in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 03-16-2008, 10:40 AM
  4. [RELEASE] LUA Bossfight
    By Shao111 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 01-23-2008, 03:03 PM
  5. [Release] EnderfectX Custom Token System
    By EnderfectX in forum World of Warcraft Emulator Servers
    Replies: 22
    Last Post: 12-20-2007, 01:51 AM
All times are GMT -5. The time now is 02:53 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