Jump to content
MakeWebGames

Recommended Posts

Posted

Hi,

This is the first post i have made on these forums although I have been reading for a some time now.

I have been searching these forums for:

Edit crystals, Edit names, Edit Brave

Rename crystals, etc

All I can find is how to add another currency.

So what i am looking for is some help to change the names of:

crystals, will, brave

Thanks :wink:

Posted

Re: change names... crystals, will, brave, ect

well... you don't really have to change them... what you need (and correct me if i'm wrong) is to show those "objects" with another name to the players.

So if that is what you are looking for, just edit the files to display, whatever you need to call each "object", the name you want users to see.

Posted

Re: change names... crystals, will, brave, ect

Best thing to do is go through each page and edit it by using CTRL-F, find the thing u want to change, edit it, then repeat for each thing :)

Posted

Re: change names... crystals, will, brave, ect

 

Best thing to do is go through each page and edit it by using CTRL-F, find the thing u want to change, edit it, then repeat for each thing :)

with caution though. unless you want to change $vars as well, and it seems to me that djgringoboy2003 is not comfortable enough to change also vars and db matching fields.

@ djgringoboy2003: you can use the CTRL F but as i said... with caution, try not to change $var names like $ir['crystals'] or whatsoever. Avoiding changing these, you should be just fine :)

Guest Anonymous
Posted

Re: change names... crystals, will, brave, ect

 

sed -I .bak 's/crystals/rubies/' *php

 

Would change crystals to rubies ... and even keep backups for you ;)

Guest Anonymous
Posted

Re: change names... crystals, will, brave, ect

From bash, or sh -- ie. at command prompt level from *nix. It's not ideal, but assuming you can form regular expressions and understand the ramifications of this, it works nicely.

Posted

Re: change names... crystals, will, brave, ect

 

From bash, or sh -- ie. at command prompt level from *nix. It's not ideal, but assuming you can form regular expressions and understand the ramifications of this, it works nicely.

bash is evil!!! korn shell is better! lol (me and bash don't get along too well)

Guest Anonymous
Posted

Re: change names... crystals, will, brave, ect

When I say bash or sh, I mean from nigh on all shells .. bash being the choice of most sysops I've encountered and sh the fallback when things go boobs up.

Posted

Re: change names... crystals, will, brave, ect

 

to change the currency just edit the money_formatter function...

Where is this? Im looking at changing my currency from dollars to pounds :)

Posted

Re: change names... crystals, will, brave, ect

Which parts of the standard MCCode V2 would I need to change in the global functions? Im not sure what to look out for to change the default currency and don't wanna mess it up. Im guessing its more then 1 simple change.

Posted

Re: change names... crystals, will, brave, ect

What killah said, ought to be enough, though a lot of files do not use the money_formatter() function, and the currency is echoed, which means you will need to go over the files making the needed changes as well!

Posted

Re: change names... crystals, will, brave, ect

Cheers guys. I changed it to '?' and it didn't work, so I left it lol.

Wil give it a go.

yeh I noticed before alot of pages don't use the currency, they just have a dollar sign in the text. Will have top go through each page and change lol. Fun :-P

Posted

Re: change names... crystals, will, brave, ect

As of, i don't use the money_formatter() function as i don't use currency symbols. you could try number_format() and echo the currency symbol just as seen on most of the files.

Posted

Re: change names... crystals, will, brave, ect

All sorted on most of my pages now. Thanks for the help.

Just going to let at the item pages now and see how easy they are.

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