Jump to content

Chris' Script Collection [Last Update: 04-06/2021]


llchrisll

Recommended Posts


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

=============== 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
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  12/05/11
  • Last Seen:  

Are all of your scripts has no bug?

All the above scripts is yours?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  189
  • Reputation:   16
  • Joined:  11/20/11
  • Last Seen:  

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

(null)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  189
  • Reputation:   16
  • Joined:  11/20/11
  • Last Seen:  

Security

 thing D;. And yus. D:
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  12/01/11
  • Last Seen:  

Thanks heaps chris saves me time to look for a few scripts i wanted.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  268
  • Reputation:   27
  • Joined:  12/06/11
  • Last Seen:  

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)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

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 "$@" 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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  12/03/11
  • Last Seen:  

Thank you very much /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   6
  • Joined:  11/27/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   6
  • Joined:  11/27/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

====== 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....
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   6
  • Joined:  11/27/11
  • Last Seen:  

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

====== 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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

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

Thanks for the release.

Regards,

Mindless

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

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 $@room$[1],"Prontera","Alberta","Izlude","Payon","Morroc";
setarray $@muser[1],70,45,30,55,60;
if($@debug) announce "PvP Town Maps loaded: "+$@room$[1],bc_self;
// Dispell PvP
setarray $@disppvp$[1],"pvp_y_1-1","pvp_y_1-4","pvp_y_1-2","pvp_y_1-3","pvp_y_1-5";
// Normal PvP
setarray $@npvp$[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 $@dmpvp$[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 $@pt2pvp$[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 $@pt3pvp$[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 $@pt4pvp$[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 $@pt5pvp$[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 $@room$[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 $@bty_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($@bty_type == <X>) {"

at the "$@bty_price" a short explanation/comment is added as well.

Regards,

Chris

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

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($@bty_type) { // Bounty Reward Type

case 1: // Zeny

set Zeny,Zeny + ($@bty_price*getarg(500));

dispbottom "Bounty Hunter: You have recieved "+($@bty_price*getarg(0))+" Zeny for killing "+rid2name(getarg(1))+".";

break;

Edited by manabeast
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

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 $@bty_type,x;" > set $@bty_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($@bty_type == 1) {
// =============== Zeny ========== //
       set $@bty_price,5000; // Zeny per Sphree

CashPoints:

} else if($@bty_type == 2) {
// =============== Cash Points ========== //
       set $@bty_price,2; // Cash Points per Sphree

Bounty Points:

} else if($@bty_type == 3) {
// =============== Bounty Points ========== //
       set $@bty_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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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 ^_^

Link to comment
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.

×
×
  • Create New...