Jump to content

Scroll of SProtect ported to Ragnarok (from Flyff)


clydelion

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  222
  • Reputation:   34
  • Joined:  12/13/11
  • Last Seen:  

that was my guess, but my max lvl isnt 20 :P its 15 so i guess just change it to 15 xD

hmm that almost did it i'll post a release on all the changes i did so it could be an actual release, i'll include u guys in it as well ;) thanx for the help tho, sorry for turning the topic into a support topic xD

i actually got it working tho no worries ;)

Edited by lilcooldude69
Link to comment
Share on other sites


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

care to share how you made it work? im pretty interested in it. :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  222
  • Reputation:   34
  • Joined:  12/13/11
  • Last Seen:  

haha alrighty,

if( item->refine >= menuskill_val
           ||  item->refine >= 20        // if it's no longer refineable
            ||  ditem->flag.no_refine     // if the item isn't refinable
            ||  (i = pc_search_inventory(sd, material [ditem->wlv])) < 0 )

needs to be

     if( item->refine >= 20
           ||  item->refine >= 20        // if it's no longer refineable
            ||  ditem->flag.no_refine     // if the item isn't refinable
            ||  (i = pc_search_inventory(sd, material [ditem->wlv])) < 0 )

for instance mine was 15 so i put a 15 there.

Edited by lilcooldude69
Link to comment
Share on other sites


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

cool. thanks a bunch. /ok

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

@Jhedzkie can you share to us your .tga file of SProtect? xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  222
  • Reputation:   34
  • Joined:  12/13/11
  • Last Seen:  

I +1 this, kinda sux when the status doesnt appear, and it just says it :/

Link to comment
Share on other sites


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

as i've told you guys earlier in this topic, latest clients doesn't support adding custom icons. well anyway, i was searching it all over my D:\ and it seems like i've overwritten it with new shit when i made another one before, so i only have the psd template. not the actual SPRO Icon. anyway, its quite easy to come up with it so i know you can do it yourself.

ICONTEMPLATE.psd

Edited by Jhedzkie
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  222
  • Reputation:   34
  • Joined:  12/13/11
  • Last Seen:  

well this would work in 2011-11-16? and not all of us are good at drawing D:

Link to comment
Share on other sites


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

the last client it worked is 2011-03-25? the one provided in the basic rAthena. or not? im not using my own upgrade protection src anymore myself because w/o the icon its somewhat lame. the last time i used it is last november 2011. and no, i suck at drawing myself. i just resized the image and traced the outline it using the pencil tool in photoshop. added some glow to make it look like a buff. and i just extracted the blue background from adrenaline rush icon. :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   0
  • Joined:  01/04/12
  • Last Seen:  

what if i want to use the Blessing Skill icon or any other default status icon whenever SProtection is Activated, how do i do that?

Link to comment
Share on other sites


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

what if i want to use the Blessing Skill icon or any other default status icon whenever SProtection is Activated, how do i do that?

i believe there has to be some hexing to achieve what you want to do.

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

@Jhedzkie: can you post a tutorial on how to put custom icons in client?

Link to comment
Share on other sites


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

@Jhedzkie: can you post a tutorial on how to put custom icons in client?

Woah that's cool. I'm not into client-side modifications though. Yes that can easily be done but what's 'downrefitem' for anyway?

I really wanted this mod to work exactly like that of Flyff's mechanics.

try to check your script.c again, (if you have an updated src that is) it is just the next function to failedrefitem..

that's for failed upgrades not to break item (vanish item) but just to downgrade it. like from +17 down to +16.

as for the client-side modification, as ive said, you need to incorporate a new status icon to the client, the icon is a 16x16 targa, that needs to be put on the effects folder, after that, you need to add some entries to the lua files as well. ( data\lua files\stateicon\efstids.lua;stateiconinfo.lua) but, then again, its not working anymore for clients 2011-11+

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

okay. thanks. Hope is Lost haha. 2011-11+ :(

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

any updated spro system?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

This should work in latest rathena revision. Patch it manually.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

thanks, works fine in my server ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

i applied the patch, no compile errors and warning, but when i try to used my sprotect item, its not working.. i used id "6153". im using r16775.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

How do you say it does not work?

Does it display "[ SProtect is now active ]" when the item is used?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

no.. it doesn't display.

bump! please help!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

Re-diff the patch, you probably missed something...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

no .. i double checked it..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

and how about the item? show your item script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

6153,Special_Exchange_Coupon,Special Exchange Ticket,2,0,,0,,,,,0xFFFFFFFF,7,2,,,,,,{ sc_start SC_SPROTECT,1,0; },{},{}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

There's nothing wrong with your script.. I'm guessing it is status.c.

If this is present in your status.c, it will display the message upon usage of the item.

+  case SC_SPROTECT:
+   if (type == SC_SPROTECT)
+    clif_displaymessage(sd->fd,"[ SProtect is now active ]");

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