llchrisll

Chris' Script Collection [Last Update: 10-25/2018]

Recommended Posts

=============== Update: 11/24-2011: Added 3 New NPCs ============

  • Restaurant v1.0
  • Global NPC Handler v1.0
  • Variable/Array Reader v1.0

For more Info view 1st Post.

Regards,

Chris

Edit: Formated it a bit and a info which script I released!!

Edited by llchrisll

Share this post


Link to post
Share on other sites

Not too sure about the Sql password thing. What if the ip is a dynamic one like mine?

(null)

Share this post


Link to post
Share on other sites

Are all of your scripts has no bug?

All the above scripts is yours?

I tested them as good as possible, if there still should be any kind of bug please report them

and yes they are all made by me.

When I "copied" some parts I asked the original creators for permisson and gave credits.

Login Settings may be similar to others, but I scripted it by myself ^^. (Was easy anyway o.o)

Not too sure about the Sql password thing. What if the ip is a dynamic one like mine?

(null)

Which SQL Password thing o.o, state your question a bit more clearly please D:, do you mean the Security System via SQL?

Regards,

Chris

Share this post


Link to post
Share on other sites

Security

 thing D;. And yus. D:

On each login the script checks the last IP with the new one, if it's the same you don't have to insert the password you set.

If NOT then he asks for it ^^, may be a bit annoying, but security goes first :).

Regards,

Chris

Share this post


Link to post
Share on other sites

Thank you for the wonderful scripts!

Almost all of them are flexible no sweat on configuring.

I love your ingame cp script.

Very useful for players no need to login to the web control panel. :D)

Share this post


Link to post
Share on other sites

Thanks for your comments, I'm glad my work could be of help :D.

BUT: I just found an major bug in the Global NPC Handler, dunno why I oversaw that:

I forgot to change some variable "$" into "[email protected]" in some "getd("$...", also the Unload part kinda crashes my map server o.o, it was fine before I released it though >-<.

Gimme some time to fix it, and I would recomment to delete/disable that NPC for the time being >_<. (If you downloaded it though ;I)

Regards,

Chris

Edit: The error occured by misconfiguration.... on my side, well I can't get it unload more than 1 npc atm o.o though.

Edited by llchrisll

Share this post


Link to post
Share on other sites

I love all scripts! <3

Oh hey, there is an error with the restaurant v1.0 script but its debugged i think..

[Error]: script_rid2sd: fatal error ! player not attached!

[Debug]: Function: mes (1 parameter):

[Debug]: Data: variable name='.n$' index=0

[Debug]: Source (NPC): Restaurant Manager at prontera (165,161)

Any idea to make it no error shows?

Edited by Sonic

Share this post


Link to post
Share on other sites

I love all scripts! <3

Oh hey, there is an error with the restaurant v1.0 script but its debugged i think..

[Error]: script_rid2sd: fatal error ! player not attached!

[Debug]: Function: mes (1 parameter):

[Debug]: Data: variable name='.n$' index=0

[Debug]: Source (NPC): Restaurant Manager at prontera (165,161)

Any idea to make it no error shows?

Thanks for your comment.

Did you made any modification? since ".n$" = String, that means it allows text.

But in your error it excepts a number o.o, cuz' in my script nothing like that appears...

Best would be to post your script, just in case.

About "script_rid2sd: fatal error ! player not attached!"

When did that happen, what exactly did you do at that time?

Regards,

Chris

Share this post


Link to post
Share on other sites

I just noticed something.

The restaurant script is different in google code and pastebin (since the mediafire link is down)

Pastebin is start from:

goto OnInit;
R_Start:

while google code is without it.

Not sure which is the right one, well now im trying the google code.

Edited: Oh! Google code script works fine without error =)

Ps: I didn't edit anything xD

Edited by Sonic

Share this post


Link to post
Share on other sites

I just noticed something.

The restaurant script is different in google code and pastebin (since the mediafire link in down)]

Pastebin is start from:

goto OnInit;
R_Start:

while google code is without it.

Not sure which is the right one, well now im trying the google code.

Edited: Oh! Google code script works fine with error =)

Ps: I didn't edit anything xD

Uh... Seems like I forgot to delete that Part,

it was for testing purposes only since I was lazzy to restart the Server for very bug which appeared. Just delete those entries and the One at the OnInit part ^^

Best Regards,

Chris

PS.: writing with my iPhone 4 is difficult, when it does to Auto-Correctur it into my language.

Edited by llchrisll

Share this post


Link to post
Share on other sites

====== Update: 12/17-2011: Fixxed Restaurant & Virtual Password Scripts ======

Fixxed Mediafire.com link, also removed those lines I forgot to remove in the Restaurant v1.0 script.

Virtual Password v1.2(.1):

Modified the Security Question & Answer and added a few features.

Tested and working perfectly.

Regards,

Chris

Edited by llchrisll
Shortened....

Share this post


Link to post
Share on other sites

---------------------------------------------------------------------------------------------------------------------------------------------

====== Update: 12/17-2011: Fixxed Restaurant & Virtual Password Scripts ======

---------------------------------------------------------------------------------------------------------------------------------------------

Fixxed Mediafire.com link, also removed those lines I forgot to remove in the Restaurant v1.0 script.

Virtual Password v1.2(.1):

Modified the Security Question & Answer and added a few features.

Tested and working perfectly.

Just a short attention please:

//Able to call that via doevent "VSPLogin::OnVSPLogin";
OnVSPLogin:
//OnPCLoginEvent, but the one above is if you have multiplie OnPCLoginEvents,
//to prevent queue usage of events. Just add the "doevent" in your controller and it should work D:.
//OnPCLoginEvent:

If you have more than 1 OnPCLoginEvents, and didn't increase that limit in "src/map/map.h" > #define MAX_EVENTQUEUE

I suggest, not needed, to use "doevent "VSPLogin::OnVSPLogin;" in a other OnPCLoginEvent, well I use something like this:

-	script	EventManager	-1,{
end;

OnPCLoginEvent:
doevent "VSPLogin::OnVSPLogin";
callfunc "GMLogin";
end;

OnPCLogoutEvent:
callfunc "GMLogout";
end;
}

If you increased it comment the "OnVSPLogin" line and uncomment the "OnPCLoginEvent" below.^^

---------------------------------------------------------------------------------------------------------------------------------------------

============= Added 1 New NPC: Character Manager for Test Servers ==========

---------------------------------------------------------------------------------------------------------------------------------------------

Also added this sweet NPC, which is supposed to be used on Test Servers only.

Or at least iif only GMs are given access to. :)

Read more in the 1st post.

Regards,

Chris

Oh okay =).

Edited by Sonic

Share this post


Link to post
Share on other sites

Update: 12/19-2011: Added 1 New NPC: PvP/GvG & MvP Arena 

Added my PvP/GvG & MvP Arena, read the first post for the important info.

Regards,

Chris

Edited by llchrisll

Share this post


Link to post
Share on other sites

I'll try to test your PvP/GvP if it is 100% BugFree.

Thanks for the release.

Regards,

Mindless

  • Upvote 1

Share this post


Link to post
Share on other sites

I'll try to test your PvP/GvP if it is 100% BugFree.

Thanks for the release.

Regards,

Mindless

Thanks for that <3, give you a cookie later :D.

Regards,

Chris

Share this post


Link to post
Share on other sites

nice script !! but how to remove the mvp arena? i want all just dun want the mvp arena becos my server no need. =)

can you adjust some of your script for me ? can ?

1.About the ranking, bounty and promotion features where to get it?

2.how to change map for pvp? alway prontera and izlude all old town are bored. i wan change filed/new town can teach me?

3.the bgm follow the map bgm?

4.can i just have Bounty Zeny and Bounty Points only? i dun wan cash point can? and about the zeny/bounty point how much reward player?

Share this post


Link to post
Share on other sites

nice script !! but how to remove the mvp arena? i want all just dun want the mvp arena becos my server no need. =)

can you adjust some of your script for me ? can ?

1.About the ranking, bounty and promotion features where to get it?

2.how to change map for pvp? alway prontera and izlude all old town are bored. i wan change filed/new town can teach me?

3.the bgm follow the map bgm?

4.can i just have Bounty Zeny and Bounty Points only? i dun wan cash point can? and about the zeny/bounty point how much reward player?

1. Will be automatically used when you install the SQL Tables.

2.

setarray [email protected]$[1],"Prontera","Alberta","Izlude","Payon","Morroc";
setarray [email protected][1],70,45,30,55,60;
if([email protected]) announce "PvP Town Maps loaded: "[email protected]$[1],bc_self;
// Dispell PvP
setarray [email protected]$[1],"pvp_y_1-1","pvp_y_1-4","pvp_y_1-2","pvp_y_1-3","pvp_y_1-5";
// Normal PvP
setarray [email protected]$[1],"pvp_y_2-1","pvp_y_2-4","pvp_y_2-2","pvp_y_2-3","pvp_y_2-5";
// ================== Deathmatch Settings + Maps ================
setarray [email protected]$[1],"pvp_y_3-1","pvp_y_3-4","pvp_y_3-2","pvp_y_3-3","pvp_y_3-5";
// ================= Party PvP Settings =================
// ========= 2vs2 Party PvP ==========//
setarray [email protected]$[1],"pvp_y_4-1","pvp_y_4-4","pvp_y_4-2","pvp_y_4-3","pvp_y_4-5";
// 3vs3 Party PvP
setarray [email protected]$[1],"pvp_y_5-1","pvp_y_5-4","pvp_y_5-2","pvp_y_5-3","pvp_y_5-5";
// 4vs4 Party PvP
setarray [email protected]$[1],"pvp_y_6-1","pvp_y_6-4","pvp_y_6-2","pvp_y_6-3","pvp_y_6-5";
// 5vs5 Party PvP
setarray [email protected]$[1],"pvp_y_7-1","pvp_y_7-4","pvp_y_7-2","pvp_y_7-3","pvp_y_7-5";

The PvP Arenas are readed via Index:

setarray [email protected]$[1],"Prontera","Alberta","Izlude","Payon","Morroc";

[1] = Prontera

[2] = Alberta

[3] = Izlude

[4] = Payon

[5] = Morroc

Which does only display what the Map will look like, since I used the already implented ones, which are also used from the Inn > PvP Keepers.

To change those, it would require an huge modify of the script itself, if you want to change only 1 pvp room.

Else you would require of the same map, multiply duplicates, like the used ones.

But it's already late here, so I will be able to do that tomorrow(= today in the afternoon - 00:16 am o.o here)

3. Do you mean the spree bgms right? The spree announces will be used on every map/pvp arena.

4.

// ============== Bounty Settings =========//
// Bounty Type: 0 = Off, 1 = Zeny, 2 = Cash Points, 3 = Bounty Points
set [email protected]_type,1;

You can choose only one reward, just edit this value to your like.

The reward is a bit below, just take a look at the "if([email protected]_type == <X>) {"

at the "[email protected]_price" a short explanation/comment is added as well.

Regards,

Chris

  • Upvote 1

Share this post


Link to post
Share on other sites

1.this script is need to inject to phpadmin sql? not put in npc/custom/.txt here?

2.the map i think change use difference like this. it's will feel unit and wont alway old map that already out date.(better put two separate txt to let ppl select old map or new map)

umbala,veins,brasilis,bra_fild01,moc_ruins

3.i mean the BGM on the map? we can custom put or they use original soundtrack from the map?

4.do you mean this? let's say i wan using zeny only for reward. set the 500zeny for reward. and other two case 2 and case 3 delete or put // infront?

switch([email protected]_type) { // Bounty Reward Type

case 1: // Zeny

set Zeny,Zeny + ([email protected]_price*getarg(500));

dispbottom "Bounty Hunter: You have recieved "+([email protected]_price*getarg(0))+" Zeny for killing "+rid2name(getarg(1))+".";

break;

Edited by manabeast

Share this post


Link to post
Share on other sites

1. the SQL Tables are in the script itself, just add it to your SQL database.

The script is to add normally like any other NPC.

But without the SQL Tables the ranking, bounty and promotion features won't be used.

2. For that I have to rethink about the room selection, got something in mind already though.

Another question is if you want those only for 1 pvp type or for all.

3. Background Music? It uses the original one, which can be changed in the data/mp3nametable.txt.

You just need to use your own if you have, but remind that it requires a certain "Bitrate", 80kBit/s is the ideal/max BitRate.

4. The script itself will use the, depending on the reward you have put at "set [email protected]_type,x;" > set [email protected]_type,1; in this case, the required options.

The settings are starting near line 584.

Just put the reward you want and edit the value, for Zeny:

    if([email protected]_type == 1) {
// =============== Zeny ========== //
       set [email protected]_price,5000; // Zeny per Sphree

CashPoints:

} else if([email protected]_type == 2) {
// =============== Cash Points ========== //
       set [email protected]_price,2; // Cash Points per Sphree

Bounty Points:

} else if($[email protected]_type == 3) {
// =============== Bounty Points ========== //
       set [email protected]_price,5; // Bounty Points per Sphree

You don't have to put "//" or delete anything.

Just putting the reward type and, like already mentioned, the reward itself.

Regards,

Chris

Share this post


Link to post
Share on other sites

Chris, if you're gonna release the dota announcements, you should add the .wav files as well. Not a lot of people have it nor know where to download it other then through Annie's topic.

Other then that, nice optimizing everything into 1 NPC. I have yet to actually test it ^_^

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...