SSZone

Hello..
It takes only 1 minute to register!

[Fun]Coding help? :)

Share

Poll

Did you manage to fix it/see it?

[ 2 ]
100% [100%] 
[ 0 ]
0% [0%] 
[ 0 ]
0% [0%] 

Total Votes: 2
avatar
undefinedz
Member
Member

Posts : 241
Join date : 2012-08-03
Location : Netherlands

[Fun]Coding help? :)

Post by undefinedz on Sun Aug 12, 2012 3:28 am

if anyone helps me to fix this you'll get a cookie Wink

switch(itemId) {
case 2717;
c.getItems().deleteItem(itemId, 1);
casket.addCasketreward(c, 2);
break
}


This has just been posted for fun, you'll also get a cookie if you know what it is/does Smile

A bit harder: it gives a compile error it points at the lowercase c in casket and says "variable c not declared"

Rojeh if you know the answer don't tell Wink

NOTE: This is Project Insanity's (PI) source its 317 and not delta's source Wink


Last edited by undefinedz on Mon Aug 13, 2012 2:58 pm; edited 1 time in total
avatar
undefinedz
Member
Member

Posts : 241
Join date : 2012-08-03
Location : Netherlands

Re: [Fun]Coding help? :)

Post by undefinedz on Mon Aug 13, 2012 12:59 am

Aww nobody????

Come on do a guess Razz
avatar
Rojeh
Owner of SSZone
Owner of SSZone

Posts : 549
Join date : 2012-08-02
Age : 21
Location : Everywhere

Re: [Fun]Coding help? :)

Post by Rojeh on Mon Aug 13, 2012 2:12 am

nice one Wink


_________________
Live fully, Be yourself, Be unique..
avatar
deadresident
Member
Member

Posts : 225
Join date : 2012-08-03
Age : 23
Location : Canada

Re: [Fun]Coding help? :)

Post by deadresident on Mon Aug 13, 2012 4:23 am

Twisted Evil that isnt for changing background?
avatar
undefinedz
Member
Member

Posts : 241
Join date : 2012-08-03
Location : Netherlands

Re: [Fun]Coding help? :)

Post by undefinedz on Mon Aug 13, 2012 2:57 pm

deadresident wrote:Twisted Evil that isnt for changing background?

Hmm it has nothing to do with background or any visual effects and is for runescape itself 1 tip its uhmm, a "reward" system Razz
avatar
undefinedz
Member
Member

Posts : 241
Join date : 2012-08-03
Location : Netherlands

Re: [Fun]Coding help? :)

Post by undefinedz on Mon Aug 13, 2012 5:29 pm

meh i'll post the fix soon. guess nobody likes java lol.
avatar
deadresident
Member
Member

Posts : 225
Join date : 2012-08-03
Age : 23
Location : Canada

Re: [Fun]Coding help? :)

Post by deadresident on Mon Aug 13, 2012 5:33 pm

fuck java no time to spend there Razz
avatar
undefinedz
Member
Member

Posts : 241
Join date : 2012-08-03
Location : Netherlands

Re: [Fun]Coding help? :)

Post by undefinedz on Mon Aug 13, 2012 7:53 pm

deadresident wrote:fuck java no time to spend there Razz


Hahaha xD this is the fix:

switch(itemId) {
case 2717:
c.getItems().deleteItem(itemId, 1);
Casket.addCasketreward(this, 2);
break;
}

what it is,
is when you click on the item.
c.getItems().deleteItem(itemId, 1);
that happens, wich makes you get an item and delete the item you clicked on, the Casketreward sounds pretty self explaining then.

so its a reward system:

you click on the casket the casket gets deleted and you get an item.

just like the mystery boxes in soulsplit Very Happy
avatar
Extreme Saan
Member
Member

Posts : 42
Join date : 2012-08-05

Re: [Fun]Coding help? :)

Post by Extreme Saan on Mon Aug 13, 2012 10:50 pm

Undefindz when will soulscape be up? looking forward to playing:P



_________________
avatar
deadresident
Member
Member

Posts : 225
Join date : 2012-08-03
Age : 23
Location : Canada

Re: [Fun]Coding help? :)

Post by deadresident on Mon Aug 13, 2012 10:53 pm

im waiting till he send me beta but i fking hope its not on rsps.org

or i will simply not play :S
avatar
dr4goncl5ws
Active member
Active member

Posts : 406
Join date : 2012-08-08
Location : United States

Re: [Fun]Coding help? :)

Post by dr4goncl5ws on Tue Aug 14, 2012 1:35 am

Omg I don't even know that much coding and I think i know what it is, isn't it for the casket reward you get after like a treasure trail or something?


_________________


[You must be registered and logged in to see this link.]
avatar
deadresident
Member
Member

Posts : 225
Join date : 2012-08-03
Age : 23
Location : Canada

Re: [Fun]Coding help? :)

Post by deadresident on Tue Aug 14, 2012 2:22 am

answer got already telled lol
avatar
dr4goncl5ws
Active member
Active member

Posts : 406
Join date : 2012-08-08
Location : United States

Re: [Fun]Coding help? :)

Post by dr4goncl5ws on Tue Aug 14, 2012 2:34 am

Yeah haha I see that now Razz


_________________


[You must be registered and logged in to see this link.]
avatar
undefinedz
Member
Member

Posts : 241
Join date : 2012-08-03
Location : Netherlands

Re: [Fun]Coding help? :)

Post by undefinedz on Thu Aug 16, 2012 4:06 am

oh forgot to close the topic oops

-topic closed

Sponsored content

Re: [Fun]Coding help? :)

Post by Sponsored content


    Current date/time is Wed Jul 18, 2018 3:40 pm