![]() |
Free Code
Erm... I was working on some item inventory thing, but well, I changed my mind on what I wanted (To those who knows me, I change my mind daily!).
Anyhow, I had some NPC that some people might find interesting. I don't comment my work, however I keep it neat, so for those who don't understand, just ask me... ANYHOW... I have the NPC in three sections (There are actually like 7, however I only worked on three). I hope the thing would work well... Initialization NPC: NPC Code: Core NPC: NPC Code: Wait... Message was too long! |
Damn 30 seconds thing... Sorry I had to double post => I don't have Winzip, and I'm on an Old Old computer... Which I can say, plays with minimum requirements.
Item NPC: NPC Code: Well, this is for learning... Don't use it on your server... Ciao! |
Post codes like theses in txt's next time man.
|
Interesting indeed, I haven't seen many people use modules.
As far as I know I was the first. It was before the npc server. Add a weapon == add a feature totally automated. This makes me want to re-make one of my favorite item systems, Diablo II's. I already know I can do it, iv'e done it before. ;) |
Quote:
|
Hey Rouge... :)
I know you can make it... I worked with you on one of those things... Way back in Doomsday. We made it too! I was testing myself then, I didn't think I could make it, but I tried... It wasn't as neat as this one, but hell, it worked... Though, I couldn't add anything because there wasn't any organization. As for modules... Well, I figured it'd be the best way to go about. Big scripts need to be devided to work well, erm... To find your mistake easier. Well, before NPC Server, it would've been quite hard... Haven't tried it then, but I know how the concept of it... It must have been quite hard though if you had an update and you didn't want to send the whole buncha players to the level in which you changed it. Anyhow! Comments are welcomed! :P EDIT: Err... Loriel, it's probably won't be compatible anyhow... I don't want a whole bunch of newbies using my scripts without knowing how to change it for there own use. |
Ah, I thought it was that Rance.
;) |
Hey Hey Rogue! Of course it's me! Which other Rance runs around programming and never makes up his mind? Well, now that you've confirmed that it's me!... How you find the script? Too complex for you? lol... I remember your query system on Doomsday... You had to use two complete DB NPCs for it... Worked fine, took 5 seconds before we'd ge the cash... :P But hell there were a lot of strings in them after a couple of months!
|
Bah don't belittle my script.
It was practically a fully functional in game guild system with group banking features and interest. One string for every bank account. There were a lot of them. I had to slow it down due to concerns that arose over time. |
lol... Be nice Rogue.... :) Your system was fine... A little twist'n'shaw, but worked fine.
I don't think putting a timeout in a database system ACTUALLY helped... :) Anyhow... :-/ Thought more people would comment, ohwell... Guess they all understood it, and didn't have any question... Or got bored reading (They don't know I spent time writing it, I suppose). |
If it's posted they can steal it ;)
|
Trust me it needed that timeout.
It was to prevent people from overloading it. |
Hey, it woulda been cool if you said what it do.
|
WanDaMan... It's recorded in the Forum History, thus, if someone steals it, they I can prove I made it because I posted it... And frankly, I don't give a **** if they steal it or not... Just show's how low-leveled they are... And secondly, it prolly won't be compatible with what they want it to do, unless they tweak it a bit..
Rogue, you could have put a string that uses the timeout on client, and we wouldn't be able to send another request till the clientside timeout is over. -- BTW, I found the item system script we made! It is in my long-lost scripting backup folders... YEA! I HAVE THOSE!... But they are spreaded into five differant harddrives, so I need to hunt them down to get them. GoZelda... Erm... How can I explain... Okay, the system I was working on was mainly for roleplaying... Initializaion NPCW: It would record the modules into an array so that I can call modules easily with callweapon. It would also add the missing modules if there is any (Basically, you add Initialization NPC, and it would add all the others) Likewise, if the player has no attributes (Str, Dex, Con, Int, Wis, Cha), it would set him it between 1 to 20 (I think).. Core NPCW: Core NPCW handles mostly everything... It sets most varialbes into arrays, finds out the speed in which the player should have, and sets items into a array for better manupility. It also finds the maximum wiegh, along with displaying messages it recieved. The most important part of it, is that you can test your variables from it (Displays in RPG Screen, aka F2). Lastly, if you have an item added to your list, it would send the variables to the Item Database. Item NPCW: Item NPCW is mainly managing the items, adding, removing, creating, and using. :) |
Rogue, you could have used a with (getnpc), and use callnpc inside the block. I think it's way more effective than having a 5-10 second timeout.
|
You confusing me with Rance?
|
No. I remember on the bank DB npc you made, there was a long timeout. =X
|
lol.. Poor Rogue...
Enjoy! I'm working on my server XP |
Quote:
When did you get unbanned? stefan get unban happy when he unbanned me? :) |
*blinks*
|
<3
|
Quote:
You posted you took your risk :)! |
Wow... Flashbacks!
|
Quote:
Well... WanDaMan... I MUST admit that my respect towards you has lowered tremendously... #1. I don't give a ****. #2. You mostly wouldn't know what to do with it. #3. I already made better yesterday. #4. Anyone can steal it... It's just that it's put in public. Having that in public, everyone will know I scripted it, and not the person trying to steal my code. #5. Go see your momma and tell her I hurt your feelings... C'mon now, you can't do **** against me (even when you try), now... Go cry to Momma how unfair it all is. BTW, here's another script you can steal (WOW! Two for the price of one!) : NPC Code: Now, if you please, just get the hell out here and stop saying **** like I give a damn. |
And you have lost some of my respect for posting a thread titled `Free code' and then posting code that you declare as non-free.
And with that post above my one. |
Rance don't petrenise me, I'm still one of the owners of malhangaia so either show me some decency or else:o
Thank you loriel. |
Or else what?... Haha... If you look, I am not on the staff list.
Quote:
Quote:
WanDaMan could have just not tried to convince me that the script displayed was his to keep (Erm.. Not that I mind, just that he didn't have to tell it in such a manner). I'm gone to bed. |
Quote:
|
I don't want the script, why would I?; it's lame and dosn't appeal to me one bit :\
|
Quote:
As for the title being "Free Code", you can use it for your server, however, I want the people to learn it's functions before using. It'd pretty hard to use, so I rathered they learn from it rather then taking it (Seeing as it mostly wouldn't serve thier purpose). Ohwell... |
Apology accepted, everyone has bad days:(
|
| All times are GMT +2. The time now is 10:51 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.