Jump to content
Scriptss

[PI] Donator scroll

Recommended Posts

simple scroll that grants donator status

server sided -
Clickitem.java

Please login or register to see this code.



DialogueHandler.java

Please login or register to see this code.



clickingbuttons.java add this below case 9157 in between the case and break

Please login or register to see this code.



and add this below case 9158: in between the case and break

Please login or register to see this code.




client sided -

itemdef.java

add this with the other cases

Please login or register to see this code.

Share this post


Link to post
Share on other sites
ground breaking xd haha nice m8 thx will help teh n0bs

Share this post


Link to post
Share on other sites
would be much simpler to use a mystery box for something like this but good job anyway! :)

Share this post


Link to post
Share on other sites
[quote name='squashy']would be much simpler to use a mystery box for something like this but good job anyway! :)[/QUOTE]

Lmao "much simpler", I don't know how it'd be easier to change itemId == 6758 to a mysterybox Id

Share this post


Link to post
Share on other sites
[quote name='falconpunch']Lmao "much simpler", I don't know how it'd be easier to change itemId == 6758 to a mysterybox Id[/QUOTE]

Lmao. sorry i meant more simpler ways to do this. sorry for the miss communication.

Share this post


Link to post
Share on other sites
[quote name='falconpunch']ground breaking xd haha nice m8 thx will help teh n0bs[/QUOTE]

ikr :rolleyes:

[quote name='squashy']Lmao. sorry i meant more simpler ways to do this. sorry for the miss communication.[/QUOTE]
[code]
if (itemId == 6199) {
c.isDonator = 1;
}
[/code]

and now you get people complaining they didn't mean to redeem the status... at least apply a little bit of fucking logic if your going to criticise something.

Share this post


Link to post
Share on other sites
[quote name='officiallulzs3c']ikr :rolleyes:


[code]
if (itemId == 6199) {
c.isDonator = 1;
}
[/code]

and now you get people complaining they didn't mean to redeem the status... at least apply a little bit of fucking logic if your going to criticise something.[/QUOTE]

I didn't criticise, i clearly outlined there was easier ways to do this. no need to get your nickers in a knot mate.

Share this post


Link to post
Share on other sites
[quote name='squashy']I didn't criticise, i clearly outlined there was easier ways to do this. no need to get your nickers in a knot mate.[/QUOTE]

Obviously he could just make the scroll automatically make them donator, but what if they misclick lol. It looks cleaner with a dialogue anyways.

OT: might want to put this as clicking buttons

[CODE]
if(c.dialogueAction == 991) {
if (c.isDonator = 0) {
c.isDonator = 1;
c.getItems().deleteItem(6758, 1);
c.logout();
} else {
//sendmessage you're already a donator
}
}
[/CODE]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×