Jump to content
  • 0

Creating a ladder


Question

Posted (edited)

Hello, I need to create a ladder of my own community-ish gameplay.

The game is where peoples will earn Kill Points each time he/she killed another players inside an arena.

What I want to ask for help is, how to create a ladder of Kill Points? do it needs an SQL related script?

and for OnPCKillEvent, can I make it just active in a map?

Whoever who would love to help, you're free to make an example of script part.

Regards ~ ♥

Edited by Zac

11 answers to this question

Recommended Posts

Posted

Wouldn't be

strcharinfo(3)

more easier to use?

Since it's the same thing except it only returns the map name ^^.

*strcharinfo(<type>)

This function will return either the name, party name or guild name for the

invoking character. Whatever it returns is determined by type.

0 - Character's name.

1 - The name of the party they're in if any.

2 - The name of the guild they're in if any.

3 - The name of the map the character is in.

Regards,

Chris

Posted (edited)

Arcenciel.

Damn, I need 1 minute to understand your helpful words without commas. /ok

So its like.

When the quest started.
set #a,1;
When the quest is running.
OnPCKillEvent:
if (#gladmember==1){
if (getmapxy("rwc01",0,0,0,strcharinfo(0))
{
set #killpoint,#killpoint+1;
dispbottom "You has killed another gladiator! your kill point is "+#killpoint+".";
}
if (getmapxy("rwc02",0,0,0,strcharinfo(0))
{
set #killpoint,#killpoint+1;
dispbottom "You has killed another gladiator! your kill point is "+#killpoint+".";
}
if (getmapxy("rwc03",0,0,0,strcharinfo(0))
{
set #killpoint,#killpoint+1;
dispbottom "You has killed another gladiator! your kill point is "+#killpoint+".";
}
end;
}

Chris.

Do you mean like this one? if yes, indeed its a lot easier, thanks.

set @gladmap,strcharinfo(3);

if (@gladmap=="rwc01"){ blabla }

Edited by Zac
Posted

Wouldn't be

strcharinfo(3)

more easier to use?

Since it's the same thing except it only returns the map name ^^.

Eh, first thing that came to mind was getmapxy. =P

Arcenciel.

Damn, I need 1 minute to understand your helpful words without commas. /ok

Chris.

Do you mean.

set @gladmap,strcharinfo(3);

if (@gladmap==rwc01){ blabla }

Don't think it needed a comma anywhere. Just read it more slowly and it'll make sense.

Your script in the codebox doesn't look right. Read the documentation for getmapxy. If you're just gonna follow Chris, all you need is:

if (strcharinfo(3) == "map name here" ) {
Script here
}

Posted

well,...both getmapxy and strcharinfo(3) has it own uses...

For example...

getmapxy

1. usually used by alot users to determine the mapname..
2. when you want the script to work in certain cells of the map because it can return the coordinate of your current char located
3. Use to search someone ( Player / NPC) across the server

strcharinfo(3)

this command only work in return you a mapname..
it wont work when you want the script only work in certain cell unless you add in other cell checking..


So, for me i would use strcharinfo(3)..xD

because it is shorter and easier to remember ....hahaha

Posted

Yes, because I'm using it for an arena that means it doesn't need certain cell x y. by the way thanks, now I'm testing it and going to release it soon.

Join the conversation

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

Guest
Answer this question...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...