Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 10:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Solved] Create Item from WorldServer, Item visible only after restart client

Discussion on [Solved] Create Item from WorldServer, Item visible only after restart client within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2015
Posts: 159
Received Thanks: 71
[Solved] Create Item from WorldServer, Item visible only after restart client

Hi,

I am currently trying to understand the FlyFF Source by implementing my own systems from scratch.

I just got inspired by a Perin Converter using the Motion System. So I created a new motion which tries to convert penya to perin when clicking the motion.

That also works. I check if user has more or equal to 100.000.000 penya in inventory, if yes, remove the gold, and create a perin in his inventory.

Well removing the penya works flawless. Creating the perin works too, but its first visible to player in inventory after relogging.

I am creating the Perin like that:

Code:
CItemElem itemElement;
itemElement.m_dwItemId = II_SYS_SYS_SCR_PERIN;
itemElement.m_nItemNum = 1;
itemElement.m_nHitPoint = -1;
itemElement.m_bCharged = 0;

pMover->AddItem(&itemElement);
This works, but perin is not in inventory instantly, only after relogging the user.

Is there some kind of refresh inventory?
What is weird is, i looked at the CreateItemFuncTextCmd to learn how items are created, and there is nothing like that.

So how can i create the perin instantly to users inventory not only after relogg?

Thanks in advance.

If someone is interested after its finished then I will release it, if there isn't already such a system released (let me know i was inactive in flyff for 2 years now, its problably already released in some released sources).

Thanks

Edit: Problem is solved. Here a demonstration.
Yothri is offline  
Thanks
1 User
Old 03/14/2017, 13:31   #2
 
elite*gold: 0
Join Date: Jan 2015
Posts: 183
Received Thanks: 702
Use
Code:
pMover->CreateItem(&itemElement);
instead of
Code:
pMover->AddItem(&itemElement);
Blouflash is offline  
Thanks
1 User
Old 03/14/2017, 13:33   #3
 
elite*gold: 0
Join Date: Jul 2015
Posts: 159
Received Thanks: 71
Quote:
Originally Posted by Blouflash View Post
Use
Code:
pMover->CreateItem(&itemElement);
instead of
Code:
pMover->AddItem(&itemElement);
Uhhh, I am dumb, even the FuncTextCmd CreateItem uses CreateItem...

Thank you, that should actually work. !!

Edit: Yep it works, so if there is someone interested, its finished now.
Here is a small video demonstration

Yothri is offline  
Old 03/20/2017, 15:22   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 211
Received Thanks: 84
Whats happend when your Inventory is Full ?
hanns.g is offline  
Old 03/20/2017, 17:03   #5
 
elite*gold: 0
Join Date: Jul 2015
Posts: 159
Received Thanks: 71
Quote:
Originally Posted by hanns.g View Post
Whats happend when your Inventory is Full ?
Then a text appears that the conversion failed.
Yothri is offline  
Reply


Similar Threads Similar Threads
[HELP] How create some weapons in ShStudio? / Crash item mall / can't create new mobs
06/24/2021 - Shaiya PServer Development - 3 Replies
Hey, Before say "use the search button" or "see other topic for resolve ur problem" i have search and i don't have found any fix for my problem :/ I have 4 big problem: -1: When i buy an item in my item mall IG the game crash (please try to recconect to the server ERROR 0) i don't have found help after 2 days of search -2: When i want create a boss/mobs IG (only boss and mobs who i have add in my Monster.SData) i have this error in the tchat "Not authorized to create!" why i have this...
Magic pop item add can't see it [not visible]
06/17/2016 - SRO Private Server - 4 Replies
hey folks, i searched alot at google but i can found nothing about that error, i was trying to add "Arena coin" to the magic pop everything is perfect i added lines to db "_RefGachaItemSet" 1 1 25834 25 1 3890 0 0 xxx 0 xxx 0 xxx 0 xxx and to media side "gachaitemset"
Aloken Item's not Visible
02/01/2012 - Dekaron Private Server - 4 Replies
Title says it when I go hunt and shit the a9 gear doesnt show. when i press alt for the item names its there and i can pick up but when i equip it and all u can c what the armor looks like ect



All times are GMT +1. The time now is 10:48.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.