The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with some cool stuff
Author Message
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #1
Need help with some cool stuff
Hello everyone, first of all this is my first topic and i want to start with some cool stuff..

So, lets go.

Im scripting a integration between shard and website... its a socket connection trough PHP and sphere, with an account and start execute any sphere command by PHP.

Ok it's ready and it's working! Big Grin

But now, i decided to make a web-papperdoll to my shard and there is where my problem begins...

I used a php code that i send 2 fields on $_GET (ids,hues) to the file and the papperdoll is printed on the website using the .mul's files of UO.
(It's a very old code, but still working)

Usage exemple: (12 is the male gump id of papperdol, and 33770 is the HUE color)
<img src="papperdoll.php?index=12&hue=33770" />

Ok, i 've made a script to sphere that in all world save, a mySQL table will be updated with the online player papperdolls itens, so i created a table to store de "player uid", "item id", "hue", "description".

[FUNCTION update_papperdoll]
db.connect
db.query "delete from <def.db_players> where uid = '<uid>'"

for x 1 24
if (<findlayer.<local.x>.id> != 0)
db.query "insert into players (uid, id, hue, description) values ('<uid>', '<findlayer.<local.x>.id>', '<findlayer.<local.x>.color>', '<findlayer.<local.x>.name>')"
endif
endfor

It's wrong, i need to get the relative gump id of the item to store on the DB cuz if i get the <findlayer.<local.x>.id> of a plate mail i'll get "01415" but i need the gump id "5141"...

Someone understand the problem? sorry about my poor english!

Many Thanks!

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
11-18-2012 03:32 PM
Find all posts by this user Like Post Quote this message in a reply
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #2
RE: Need help with some cool stuff
I've found some good information on this link!


http://uo.stratics.com/heptazane/fileformats.shtml#1.0


I still trying!

thx

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
11-19-2012 06:12 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #3
RE: Need help with some cool stuff
use '<eval <findlayer.<local.x>.id>>' instead of '<findlayer.<local.x>.id>'
11-19-2012 07:21 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #4
RE: Need help with some cool stuff
Thanks for help!!!!


It works!!!

here is the first picture taken from my system Smile

Written in PHP, using .mul files from my shard.


As u can see, it works with HUES custom colors and custom gumps Smile


Thanks!

ANother one.... now with other gump Smile

Now added transparency to the background! (the red background is the HTML background)


Attached File(s) Thumbnail(s)
           

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
(This post was last modified: 11-20-2012 03:54 AM by escribano.)
11-20-2012 03:03 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: Need help with some cool stuff
very nice Smile
11-20-2012 06:59 AM
Find all posts by this user Like Post Quote this message in a reply
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #6
RE: Need help with some cool stuff
Thanks Darksun84!!!!

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
11-20-2012 09:08 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)