View Full Version : Random Stuff.
Kingly_Krab
09-01-2013, 11:34 AM
These are a few scripts I've been fiddling with the last couple of weeks, just adding more things as I find them and see that they'd be cool, feel free to take a look.
Some may be useful, like the Race and Zone Hash, others are just screenshots of my current workload.
Player Controls: http://prntscr.com/1opwiq
Player Information: http://prntscr.com/1opw4n
Player Target Information: http://prntscr.com/1opw78
Player Editing Help: http://prntscr.com/1opwap
NPC Controls: http://prntscr.com/1opwh0
NPC Information: http://prntscr.com/1opwmb
NPC Target Information: http://prntscr.com/1oq1tl
NPC Editing Help: http://prntscr.com/1opwq7
Server Controller Controls: http://prntscr.com/1opwsr
Server Controller Information: http://prntscr.com/1opxa3
Server Controller Target Information: http://prntscr.com/1opxep
Server Controls: http://prntscr.com/1opww0
Test Target NPC Dialogue: http://prntscr.com/1opxkg
Equipment Viewing: http://prntscr.com/1oq2e8
Test Console NPC Dialogue: http://prntscr.com/1opy6n
Global Messages: http://prntscr.com/1opybh
Zone Hash: http://pastebin.com/Viy6dspn
Gender Hash: http://pastebin.com/NSBphBiT
Race Hash: http://pastebin.com/b92SGEpT
Deity Hash: http://pastebin.com/C03cqePf
Class Hash: http://pastebin.com/VQNjQsvS
Skill Hash: http://pastebin.com/qYy7w9HP
rencro
09-01-2013, 01:22 PM
Nice stuff.. Question, isn't agnostic 396, or I assume both work?
Kingly_Krab
09-01-2013, 01:31 PM
I believe 396 of Agnostic is for items, but I'm not sure, I just set it as 140. I can make a character with Agnostic and get back to you.
EDIT: Tested. 140 Is Agnostic, 396 is for items I believe.
rencro
09-01-2013, 01:53 PM
In the char_create_combinations table, for Vah Shir it uses 396 for deity. Wonder if its interchangeable, guess I'll try..
allocation_id, race, class, deity, start_zone, expansions_req
80 130 1 396 394 2052
80 130 1 396 155 4
75 130 8 396 394 2052
75 130 8 396 155 4
78 130 9 396 394 2052
78 130 9 396 155 4
79 130 10 396 394 2052
79 130 10 396 155 4
76 130 15 396 394 2052
76 130 15 396 155 4
77 130 16 396 394 2116
77 130 16 396 155 68
Kingly_Krab
09-01-2013, 02:31 PM
That's really weird, it may be interchangeable, haven't tried anything with it beyond the hash.
EDIT: Made a Vah Shir, made him Agnostic, and it still says Agnostic, even though my hash only contains 140, thus meaning the 396 is the same as the 140, possibly?
Kingly_Krab
09-02-2013, 05:08 PM
On line 50 of global_player.pl you'll see this, change that to the ID of your server controller NPC.
This is Version 1.0, I will be releasing more versions once I come up with more ideas.
CREDITS: Thank you Akkadius for the idea as to your targeting system on your server, thus how I got the idea for mine.
NOTE: If you find any errors or have any suggestions, feel free to message me, thanks.
if($UserTarget->GetNPCTypeID() == Server Controller ID)
Test_Console_NPC.pl: http://pastebin.com/5hMgT9cu
Test_Target_NPC.pl: http://pastebin.com/yxeScbVd
Global_Player.pl: http://pastebin.com/EQwswZ0P
P.S. Leaving in the credits line just makes it that much more special. Not really, but it'd be nice if you gave credit!
If you want to remove it, search for this:
##Little Extra -- Credits Line##
if($text=~/^#Credits$/i)
{
$client->Message(257, "The Server tells you, 'This script was written by Kingly_Krab for the public, if you leave this line in I love you.'");
$client->Message(257, "The Server tells you, 'You currently have Version 1.0 of Kingly_Krab's global_player.pl.'");
}
EDIT: Forgot to mention I didn't tell you about "#fullheal", it completely restores health, mana, and endurance.
HnathBST
09-10-2013, 03:09 AM
This is Version 1.0, I will be releasing more versions once I come up with more ideas.
...
Do these scripts still work? I am trying to do something similar and I can not get the sub EVENT_SAY to accept an unused #command (such as #blarg) I have tried adding them to the command table in the database, commands.pl (using commands_init and command_add) I'm having absolutely no luck adding my own custom commands.
Kingly_Krab
09-10-2013, 07:13 AM
If you cannot get the # commands to work try taking the # out, as I have this working, with the #, on the newest revision, although taking out the # has proved helpful in my other endeavors.
HnathBST
09-10-2013, 08:30 AM
If you cannot get the # commands to work try taking the # out, as I have this working, with the #, on the newest revision, although taking out the # has proved helpful in my other endeavors.
Thanks for the quick response, I went ahead and replaced the # with ! at least until I could figure out how to get the #commands to work.
Great set of utilities btw
:)
Kingly_Krab
09-10-2013, 03:44 PM
Thanks for the quick response, I went ahead and replaced the # with ! at least until I could figure out how to get the #commands to work.
Great set of utilities btw
:)
Thanks man, working on a couple more, I'll post some screenshots later today if I have the time. And yeah, that's fine, apparently the new source doesn't like fake # commands, sorry for the inconvenience.
Kingly_Krab
09-11-2013, 09:23 PM
I have been working on a couple more things, the ones I am taking a screenshot of are completely finished.
Current Finished Projects: http://prntscr.com/1qri8o
Current Finished Projects (Continued): http://prntscr.com/1qricb
Kingly_Krab
10-07-2013, 12:10 AM
A custom system I made myself, although not exactly an original idea, just an original take on it. So, as you progress through Rebirths, your power increases.
Rebirth 0: http://prntscr.com/1vrt10
Rebirth 100: http://prntscr.com/1vrt83
The damage is calculated as so:
damage = damage * (rebirth / 5)
Teleporters:
Non-Rebirth Teleporter: http://prntscr.com/1vwmfx
Rebirth Teleporter: http://prntscr.com/1vwmk3
Those teleporters are temporarily set as shown in the picture, but can be changed in the future, these are just random zones, not actual content.
Township EQ
10-07-2013, 01:14 AM
These are awesome man.. thanks so much for doing this and making it public.
Kingly_Krab
10-08-2013, 10:56 PM
These are awesome man.. thanks so much for doing this and making it public.
It's nice to give back, speaking of giving back, here's seven plugins. I have them saved in my plugins folder as custom.pl, although it doesn't matter what you save it as, as long as you save it in the plugins folder it will work.
Plugins:
Skill(skill id)
Class(class id)
Race(race id)
Deity(deity id)
Gender(gender id)
Zone(zone id)
ZoneShortName(zone id)
Examples:
Skill(1) = "1H Slashing"
Class(1) = "Warrior"
Race(1) = "Human"
Deity(140) = "Agnostic"
Gender(0) = "Male"
Zone(1) = "South Qeynos"
ZoneShortName(1) = "qeynos"
EDIT: Sorry for not posting this with the original, here is my report system, I have released this to Chu, the owner of Equilibrium, and it's working rather well, so I thought I would release it.
You may change the time between reports from 30 minutes to however many minutes, hours, days, whatever. Guides can only view, Admins can clear and view, Players, Admins, and Guides can report.
Plugins: http://pastebin.com/AtqS8F2p
Reports: http://pastebin.com/kiVe8Gw8
Reports Table: http://pastebin.com/S0bHeEAK
Drakiyth
10-08-2013, 11:28 PM
These are some really useful scripts/tools, Kinglykrab. Thank you for your hard work.
knowom
10-18-2013, 10:31 PM
A custom system I made myself, although not exactly an original idea, just an original take on it. So, as you progress through Rebirths, your power increases.
Rebirth 0: http://prntscr.com/1vrt10
Rebirth 100: http://prntscr.com/1vrt83
The damage is calculated as so:
damage = damage * (rebirth / 5)
Teleporters:
Non-Rebirth Teleporter: http://prntscr.com/1vwmfx
Rebirth Teleporter: http://prntscr.com/1vwmk3
Those teleporters are temporarily set as shown in the picture, but can be changed in the future, these are just random zones, not actual content. Looks reminiscent of how UO or Skyrim skill up system works I like it I see a lot of potential applied uses for it.
I hope this concept can be expanded to branch off in different directions like you might apply this type of idea to item property stats to evolve with increased usage and it could be used to either increase or decrease the stats they could even be interchangeably used together on a case by case basis.
You might even do it with individual spawns and the difficulty on them, the experience yielded from killing them, the loot table % chances for their rare drops, cash drop amount, or whatever else you can think up kind of like Darwinism in a sense.
Kingly_Krab
10-20-2013, 03:39 PM
I have, as of today, incorporated quite a large amount of weapons in to my pets as well as pet scaling based on Rebirth if you're above 0 Rebirth and Charisma if you're 0 Rebirth.
Pet Menu and Items that you may equip: http://prntscr.com/1ym9ke
Rebirth 1 Magician Pet: http://prntscr.com/1ym9dg
Rebirth 100 Magician Pet: http://prntscr.com/1ym9tc
Kingly_Krab
11-03-2013, 12:11 PM
Here is an updated report system that tells who cleared the messages and tells you how many messages you have to view upon login if you're equal to or above 80 status.
http://pastebin.com/6n2eJGP9
Kingly_Krab
11-18-2013, 10:05 PM
I have worked on direct messages to clients from anywhere in the game, here are some pictures.
Sending: http://prntscr.com/255r35
Recieving: http://prntscr.com/255qog
Here's the code, place it in global_player.pl: http://pastebin.com/YKUEEhD5
Kingly_Krab
11-18-2013, 11:20 PM
Here is a level-based teleporter that has an array in the hash, it that works as follows:
#Zone ID | Minimum Level | Maximum Level
my %zonelist = (1 => [1, 5]);
The code is here (http://pastebin.com/Nf078nY6).
Kingly_Krab
11-29-2013, 02:33 AM
Here is plugin::Slot, it returns the slot name from the id, such as slot 9999 is Powersource so it works like this:
quest::say("Your " . plugin::Slot(9999) . " slot contains " . quest::varlink($client->GetItemIDAt(9999)) . ".");
NPC says, 'Your Powersource slot contains Pure Energeian Elemental Orb.'
http://pastebin.com/R60Tbb5e
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.